Class: Mail::AddressContainer
- Inherits:
-
Array
- Object
- Array
- Mail::AddressContainer
- Defined in:
- lib/mail/fields/common/address_container.rb
Instance Method Summary collapse
- #<<(address) ⇒ Object
-
#initialize(field, list = []) ⇒ AddressContainer
constructor
A new instance of AddressContainer.
Constructor Details
#initialize(field, list = []) ⇒ AddressContainer
Returns a new instance of AddressContainer.
5 6 7 8 |
# File 'lib/mail/fields/common/address_container.rb', line 5 def initialize(field, list = []) @field = field super(list) end |
Instance Method Details
#<<(address) ⇒ Object
10 11 12 |
# File 'lib/mail/fields/common/address_container.rb', line 10 def << (address) @field << address end |