Class: Mail::CommentsField

Inherits:
UnstructuredField show all
Defined in:
lib/mail/fields/comments_field.rb

Constant Summary collapse

FIELD_NAME =
'comments'
CAPITALIZED_FIELD =
'Comments'

Instance Method Summary collapse

Methods inherited from UnstructuredField

#decoded, #default, #encoded, #parse

Methods included from Utilities

included

Methods included from CommonField

included

Constructor Details

#initialize(*args) ⇒ CommentsField

Returns a new instance of CommentsField.



33
34
35
36
37
38
# File 'lib/mail/fields/comments_field.rb', line 33

def initialize(*args)
  super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last))
  self.parse
  self

end