Class: FormatR::LeftFormatter
Overview
Format things that go to the left, ala <
Instance Method Summary collapse
-
#formatString(s, var_name, binding) ⇒ Object
send things left.
-
#initialize(val) ⇒ LeftFormatter
constructor
A new instance of LeftFormatter.
Methods inherited from Formatter
Constructor Details
#initialize(val) ⇒ LeftFormatter
Returns a new instance of LeftFormatter.
611 612 613 |
# File 'lib/formatr.rb', line 611 def initialize (val) super end |
Instance Method Details
#formatString(s, var_name, binding) ⇒ Object
send things left
616 617 618 619 |
# File 'lib/formatr.rb', line 616 def formatString (s, var_name, binding) s = super s.ljust(@len) end |