Module: TableCreator

Defined in:
lib/table_creator/row_group.rb,
lib/table_creator.rb,
lib/table_creator/col.rb,
lib/table_creator/row.rb,
lib/table_creator/table.rb,
lib/table_creator/version.rb,
lib/table_creator/col_group.rb,
lib/table_creator/result_group.rb

Overview

A group of rows

Can be of type: [:header, :footer, :body]

Defined Under Namespace

Classes: Col, ColGroup, ResultGroup, Row, RowGroup, Table

Constant Summary collapse

Error =
Class.new(StandardError)
VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.add_formatter(type, klass, method) ⇒ Object



17
18
19
# File 'lib/table_creator.rb', line 17

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

.formatters(type) ⇒ Object



12
13
14
15
# File 'lib/table_creator.rb', line 12

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