Sha256: f980f226fa0ba90b60acaeb1b8e04d6d2704035f4c4b4f62d2bc37f89799feb3
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
# coding: utf-8 module Thinreports module Core::Shape::TextBlock class Formatter::Datetime < Formatter::Basic private def apply_format_to(value) value.strftime(format.format_datetime_format) end def applicable?(value) !blank_value?(format.format_datetime_format) && value.respond_to?(:strftime) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems