class Thinreports::Core::Shape::TextBlock::Formatter::Datetime

Private Instance Methods

applicable?(value) click to toggle source
# File lib/thinreports/core/shape/text_block/formatter/datetime.rb, line 15
def applicable?(value)
  !blank_value?(format.format_datetime_format) && value.respond_to?(:strftime)
end
apply_format_to(value) click to toggle source
# File lib/thinreports/core/shape/text_block/formatter/datetime.rb, line 11
def apply_format_to(value)
  value.strftime(format.format_datetime_format)
end