Sha256: c97bffe3af332e79cdca9f1cdf353222220b280defc22927aaf6759653453a46
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.1 | lib/thinreports/core/shape/text_block/formatter/padding.rb |
thinreports-0.8.0 | lib/thinreports/core/shape/text_block/formatter/padding.rb |