module Whowas::Formattable

Public Instance Methods

format(input) click to toggle source
# File lib/whowas/formattable.rb, line 3
def format(input)
  format_input(input)
end

Private Instance Methods

format_input(input) click to toggle source

This is a hook for the including class to use to modify the input before the adapter gets it.

By default, this method just returns the arguments given, but note that most classes _will have_ to modify the input to make it usable by the adapter.

# File lib/whowas/formattable.rb, line 15
def format_input(input)
  input
end