Sha256: 695cd1dcc21274647ced208d0ed08acfaf2226525e2ef71d74f416fd56c0c0b7
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
# coding: utf-8 module Thinreports module Core::Shape::TextBlock class Formatter::Padding < Formatter::Basic private def apply_format_to(value) value.to_s.send(format.format_padding_rdir? ? :ljust : :rjust, format.format_padding_length, format.format_padding_char) end def applicable?(_value) !blank_value?(format.format_padding_char) && format.format_padding_length > 0 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems