Class: Paf::ArrayFormatter

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

Overview

Processing to format a PAF entry as an array

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
10
11
12
13
# File 'lib/paf/array_formatter.rb', line 6

def format(paf)
  super(paf)
  lines.clone.tap do |array|
    post_attrs.each do |attr|
      array << send(attr) unless send(attr).vacant?
    end
  end
end