class Paf::HashFormatter

Processing to format a PAF entry as a hash

Public Instance Methods

format(paf) click to toggle source
Calls superclass method Paf::Formatter::format
# File lib/paf/hash_formatter.rb, line 6
def format(paf)
  super(paf)
  {}.tap do |hash|
    ([:lines] + post_attrs).each do |attr|
      hash[attr] = send(attr) unless send(attr).vacant?
    end
  end
end