Module: AsciiDataTools::Formatting::FormatableField

Defined in:
lib/ascii-data-tools/formatting.rb

Constant Summary collapse

PAD_CHARACTER =
"-"
MINIMUM_NUMBER_OF_DASHES =
5

Instance Method Summary collapse

Instance Method Details

#template(properties) ⇒ Object



86
87
88
89
90
91
92
# File 'lib/ascii-data-tools/formatting.rb', line 86

def template(properties)
  "%02d %s : [%s]%s" % [ properties[:position],
                         padded_field_name(name, properties[:longest_field_name]),
                         "%s",
                         padding(properties)
                       ]
end