Sha256: e718ef483914adb7fc1b2f88e0e2628a864c28feb2548bfb830a0c051f0b3f4d

Contents?: true

Size: 496 Bytes

Versions: 5

Compression:

Stored size: 496 Bytes

Contents

module TableCreator
  require 'action_view'
  require 'active_support/all'

  require 'table_creator/table'
  require 'table_creator/col'
  require 'table_creator/row'
  require 'table_creator/row_group'
  require 'table_creator/col_group'
  require 'table_creator/result_group'

  def self.formatters(type)
    @formatters ||= {}
    @formatters[type] ||= {}
  end

  def self.add_formatter(type, klass, method)
    formatters(type)[klass] = method
  end

  Error = Class.new(StandardError)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
table_creator-0.4.0 lib/table_creator.rb
table_creator-0.3.0 lib/table_creator.rb
table_creator-0.2.0 lib/table_creator.rb
table_creator-0.1.1 lib/table_creator.rb
table_creator-0.1.0 lib/table_creator.rb