class Mail::Message

def subject( val = nil )

mail.subject #=> "G'Day mate"
mail.subject "G'Day mate"

Example:

Also allows you to set the value by passing a value as a parameter

mail.subject #=> "This is あ string"
mail.subject = '=?UTF-8?Q?This_is_=E3=81=82_string?='
mail.subject #=> "G'Day mate"
mail.subject = "G'Day mate"

Example:

Returns the decoded value of the subject field, as a single string.
def subject( val = nil )
  default :subject, val
end