Sha256: 841079331f91280f3bccde137a430e09db9530ae5f48c18c10e83463c1e0046d
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
# coding: utf-8 module Thinreports module Core::Shape class TextBlock::Format < Basic::BlockFormat config_reader ref_id: %w( ref-id ) config_reader :valign, :overflow config_reader line_height: %w( line-height ) config_reader format_base: %w( format base ), format_type: %w( format type ), format_datetime_format: %w( format datetime format ), format_number_delimiter: %w( format number delimiter ), format_number_precision: %w( format number precision ), format_padding_char: %w( format padding char ), format_padding_dir: %w( format padding direction ) config_reader word_wrap: %w( word-wrap ) config_checker 'true', :multiple config_checker 'R', format_padding_rdir: %w( format padding direction ) config_reader format_padding_length: %w( format padding length ) do |len| blank_value?(len) ? 0 : len.to_i end config_reader :has_format? => %w( format type ) do |type| %w( datetime number padding ).include?(type) end config_reader :has_reference? => %w( ref-id ) do |ref_id| !blank_value?(ref_id) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems