Module: Paf::Formattable::ClassMethods
- Defined in:
- lib/paf/formattable.rb
Overview
Methods to be added to the including class
Instance Method Summary collapse
-
#format(args) ⇒ Object
Formats a hash of PAF address elements into an array of strings.
-
#to_s(*args) ⇒ Object
Formats a hash of PAF address elements into a string.
Instance Method Details
#format(args) ⇒ Object
Formats a hash of PAF address elements into an array of strings
21 22 23 |
# File 'lib/paf/formattable.rb', line 21 def format(args) new(args).format end |
#to_s(*args) ⇒ Object
Formats a hash of PAF address elements into a string
26 27 28 29 |
# File 'lib/paf/formattable.rb', line 26 def to_s(*args) return super if args.empty? new(args[0]).to_s end |