Sha256: 1c35b44304d281cbdc122a36a0f00cdca45034c647b234d871757d92432e1f13
Contents?: true
Size: 642 Bytes
Versions: 7
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true module Thinreports module Core module Shape module TextBlock module Formatter class 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 end end end
Version data entries
7 entries across 7 versions & 1 rubygems