Class: Mail::AddressContainer
- Inherits:
-
Array
- Object
- Array
- Mail::AddressContainer
- Defined in:
- lib/mail/fields/common_address_field.rb
Overview
:nodoc:
Instance Method Summary collapse
- #<<(address) ⇒ Object
-
#initialize(field, list = nil) ⇒ AddressContainer
constructor
A new instance of AddressContainer.
Constructor Details
#initialize(field, list = nil) ⇒ AddressContainer
Returns a new instance of AddressContainer.
7 8 9 10 |
# File 'lib/mail/fields/common_address_field.rb', line 7 def initialize(field, list = nil) @field = field super list if list end |
Instance Method Details
#<<(address) ⇒ Object
12 13 14 |
# File 'lib/mail/fields/common_address_field.rb', line 12 def <<(address) @field << address end |