class FixedWidthColumns::Config

Attributes

label[RW]
name[RW]
target[RW]

Public Instance Methods

headers?(header ;) click to toggle source
# File lib/fixed_width_columns/config.rb, line 14
def headers?                    header ; header ? [formatter.headers] : []                                ; end
pre_process(items ;) click to toggle source
# File lib/fixed_width_columns/config.rb, line 15
def pre_process                  items ; (preprocessors || []).inject(items) { |list, pp| pp.apply list } ; end
to_text(items, header=nil) click to toggle source
# File lib/fixed_width_columns/config.rb, line 9
def to_text items, header=nil
  pre_process(items).inject(headers? header) { |ll, i| ll << formatter.format(i) }.join "\n"
end