Sha256: 22c35db3a610c2d266cdd121e218d87795c911255cb39327bd91d9d42210dae7

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape::Tblock
    
    # @private
    class Formatter::Datetime < Formatter::Basic
      
    private
      
      def apply_format_to(value)
        value.strftime(format.format_datetime_format)
      end
      
      def applicable?(value)
        !format.format_datetime_format.blank? && value.respond_to?(:strftime)
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.6.0.pre3 lib/thinreports/core/shape/tblock/formatter/datetime.rb