class RMail::Address::List
RMail::Address::List
is a simple subclass of the Array class that provides convenience methods for accessing the RMail::Address
objects it contains.
Public Instance Methods
Returns an array of strings – the result of calling RMail::Address#address
on each element of the list.
# File lib/rmail/address.rb, line 823 def addresses collect { |a| a.address } end
Returns an array of strings – the result of calling RMail::Address#display_name
on each element of the list.
# File lib/rmail/address.rb, line 805 def display_names collect { |a| a.display_name } end
Returns an array of strings – the result of calling RMail::Address#domain
on each element of the list.
# File lib/rmail/address.rb, line 817 def domains collect { |a| a.domain } end
Returns an array of strings – the result of calling RMail::Address#format
on each element of the list.
# File lib/rmail/address.rb, line 829 def format collect { |a| a.format } end
Returns an array of strings – the result of calling RMail::Address#local
on each element of the list.
# File lib/rmail/address.rb, line 799 def locals collect { |a| a.local } end
Returns an array of strings – the result of calling RMail::Address#name
on each element of the list.
# File lib/rmail/address.rb, line 811 def names collect { |a| a.name } end