Class: Mail::AddressContainer

Inherits:
Array
  • Object
show all
Defined in:
lib/mail/fields/common/address_container.rb

Instance Method Summary collapse

Constructor Details

#initialize(field, list = []) ⇒ AddressContainer

Returns a new instance of AddressContainer



6
7
8
9
# File 'lib/mail/fields/common/address_container.rb', line 6

def initialize(field, list = [])
  @field = field
  super(list)
end

Instance Method Details

#<<(address) ⇒ Object



11
12
13
# File 'lib/mail/fields/common/address_container.rb', line 11

def << (address)
  @field << address
end