Class: RMail::Address::List
- Inherits:
-
Array
- Object
- Array
- RMail::Address::List
- Defined in:
- lib/rmail/address.rb
Overview
RMail::Address::List is a simple subclass of the Array class that provides convenience methods for accessing the RMail::Address objects it contains.
Instance Method Summary collapse
-
#addresses ⇒ Object
Returns an array of strings – the result of calling RMail::Address#address on each element of the list.
-
#display_names ⇒ Object
Returns an array of strings – the result of calling RMail::Address#display_name on each element of the list.
-
#domains ⇒ Object
Returns an array of strings – the result of calling RMail::Address#domain on each element of the list.
-
#format ⇒ Object
Returns an array of strings – the result of calling RMail::Address#format on each element of the list.
-
#locals ⇒ Object
Returns an array of strings – the result of calling RMail::Address#local on each element of the list.
-
#names ⇒ Object
Returns an array of strings – the result of calling RMail::Address#name on each element of the list.
Instance Method Details
#addresses ⇒ Object
Returns an array of strings – the result of calling RMail::Address#address on each element of the list.
823 824 825 |
# File 'lib/rmail/address.rb', line 823 def addresses collect { |a| a.address } end |
#display_names ⇒ Object
Returns an array of strings – the result of calling RMail::Address#display_name on each element of the list.
805 806 807 |
# File 'lib/rmail/address.rb', line 805 def display_names collect { |a| a.display_name } end |
#domains ⇒ Object
Returns an array of strings – the result of calling RMail::Address#domain on each element of the list.
817 818 819 |
# File 'lib/rmail/address.rb', line 817 def domains collect { |a| a.domain } end |
#format ⇒ Object
Returns an array of strings – the result of calling RMail::Address#format on each element of the list.
829 830 831 |
# File 'lib/rmail/address.rb', line 829 def format collect { |a| a.format } end |
#locals ⇒ Object
Returns an array of strings – the result of calling RMail::Address#local on each element of the list.
799 800 801 |
# File 'lib/rmail/address.rb', line 799 def locals collect { |a| a.local } end |
#names ⇒ Object
Returns an array of strings – the result of calling RMail::Address#name on each element of the list.
811 812 813 |
# File 'lib/rmail/address.rb', line 811 def names collect { |a| a.name } end |