# 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

addresses() click to toggle source

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

display_names() click to toggle source

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

domains() click to toggle source

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

format() click to toggle source

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

locals() click to toggle source

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

names() click to toggle source

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