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