Class: Paf::StringFormatter

Inherits:
Formatter show all
Defined in:
lib/paf/string_formatter.rb

Overview

Processing to format a PAF entry as a string

Instance Method Summary collapse

Methods inherited from Formatter

format, #method_missing, #respond_to_missing?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Paf::Formatter

Instance Method Details

#format(paf) ⇒ Object



6
7
8
9
# File 'lib/paf/string_formatter.rb', line 6

def format(paf)
  super(paf)
  ([(lines + [post_town]).condense(', ')] + [postcode]).condense('. ')
end