Module: TypedPrint

Defined in:
lib/typed_print.rb,
lib/typed_print/table.rb,
lib/typed_print/version.rb

Defined Under Namespace

Classes: Table

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details



7
8
9
10
# File 'lib/typed_print.rb', line 7

def self.print(data, align: {}, only: nil, headers: {}, format: :plain)
  puts table(data, align: align, only: only, headers: headers, format: format)
  nil
end

.table(data, align: {}, only: nil, headers: {}, format: :plain) ⇒ Object



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

def self.table(data, align: {}, only: nil, headers: {}, format: :plain)
  table_obj = TypedPrint::Table.new(data, align, only, headers)
  table_obj.render(format)
end