class Thinreports::Core::Shape::TextBlock::Formatter::Padding

Private Instance Methods

applicable?(_value) click to toggle source
# File lib/thinreports/core/shape/text_block/formatter/padding.rb, line 17
def applicable?(_value)
  !blank_value?(format.format_padding_char) && format.format_padding_length > 0
end
apply_format_to(value) click to toggle source
# File lib/thinreports/core/shape/text_block/formatter/padding.rb, line 11
def apply_format_to(value)
  value.to_s.send(format.format_padding_rdir? ? :ljust : :rjust,
                  format.format_padding_length,
                  format.format_padding_char)
end