class Paf::Formatter
Processing to format a PAF entry
Public Class Methods
format(paf)
click to toggle source
# File lib/paf/formatter.rb, line 6 def self.format(paf) new.format(paf) end
Public Instance Methods
format(paf)
click to toggle source
# File lib/paf/formatter.rb, line 10 def format(paf) @paf = paf.clone @paf.extend Lineable end
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/paf/formatter.rb, line 15 def method_missing(method, *args) return @paf.send(method, *args) if @paf.respond_to?(method) return @paf.class.send(method, *args) if @paf.class.respond_to?(method) super end
respond_to_missing?(method_name, include_private = false)
click to toggle source
Calls superclass method
# File lib/paf/formatter.rb, line 21 def respond_to_missing?(method_name, include_private = false) @paf.respond_to?(method) || @paf.class.respond_to?(method) || super end