class TMail::Address parse( str: String )
parses str and creates new TMail::Address object.
new( locals: Array of String, domains : Array of String )
creates new TMail::Address object consist from local part
locals and domain part domains.
spec -< Stringan address spec (form of "....@....").
routes -< Array of Stringdelivery routes. Strings do not include character "@".
phrase -< Stringshort description for this address (e.g. real name).
encoded( eol = "\r\n", encoding = 'j' ) -< Stringconverts this object into MIME-encoded string.
decoded( eol = "\n", encoding = 'e' ) -< Stringconverts this object into decoded string.
class TMail::AddressGroup new( name: String, addrs: Array of TMail::Address/TMail::AddressGroup ) -< TMail::AddressGroup
creates new TMail::AddressGroup object.
name is the name of this group, addrs is addresses
which belongs to this group.
name -< Stringthe (human readable) name of this group.
addresses -< Array of TMail::Address/TMail::AddressGroupaddresses which belongs to this group.
to_a -< Array of TMail::Address/TMail::AddressGroupto_ary -< Array of TMail::Address/TMail::AddressGroup
equals to addresses.dup.
flatten -< Array of TMail::Address
flatten this group into one level of array of TMail::Address.
add( a: Array of TMail::Address/TMail::AddressGroup )push( a: Array of TMail::Address/TMail::AddressGroup )adds an address or an group to this group.
delete( addr: Array of TMail::Address/TMail::AddressGroup )removes addr from this group.
each {|a| .... }
equals to addresses.each {|a| .... }.
each_address {|a| .... }
equals to flatten.each {|a| .... }
encoded( eol = "\r\n", encoding = 'j' ) -< Stringconverts this object into MIME-encoded string.
decoded( eol = "\n", encoding = 'e' ) -< Stringconverts this object into decoded string.
==( other )eql?( other )
judges if self is equal to other, by comparing self.addresses and
other.addresses. (self.name is meanless)