lib/pinpoint/format.rb
def output(address, options = {})
      requested_style = options.fetch(:style, :one_line).to_sym

      styles[requested_style].output(address)
    end
def output(address, options = {})
      requested_style = options.fetch(:style, :one_line).to_sym

      styles[requested_style].output(address)
    end
def output ( address , options = { } ) requested_style = options . fetch ( :style , :one_line ) . to_sym styles [ requested_style ] . output ( address ) end
Public: Will output any given address for the country defined in the
 Format.

 By default it will output in a 'one-line' style.

 address - The address that will be formatted (typically
           a Pinpoint::Address).

 options - A Hash of options for the method

           :style - The style to be applied to the address output
                    (defaults to :one_line).

 Example

   output my_address, :style => :one_line
   # => 'Kwik-E-Mart, 123 Apu Lane, Springfield, NW 12345, United States'

 Returns a String representing the address in the specified style.
Public : Will output any given address for the country defined in the Format .