Sha256: efc296dd8ba947cd01424e642dd3fafa5888c69a95925badcef07520e505e9e6
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
# coding: utf-8 module ThinReports module Core::Shape::Tblock # @private module Formatter # @param [ThinReports::Core::Shape::Tblock::Format] format # @return [ThinReports::Core::Shape::Tblock::Formatter::Base] def self.setup(format) klass = if format.format_type.blank? Basic else case format.format_type when 'number' then Number when 'datetime' then Datetime when 'padding' then Padding else raise ThinReports::Errors::UnknownFormatterType end end klass.new(format) end end end end require 'thinreports/core/shape/tblock/formatter/basic' require 'thinreports/core/shape/tblock/formatter/datetime' require 'thinreports/core/shape/tblock/formatter/padding' require 'thinreports/core/shape/tblock/formatter/number'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.6.0.pre3 | lib/thinreports/core/shape/tblock/formatter.rb |