Module: TermUtils::Tab
- Defined in:
- lib/term_utils/tab.rb
Defined Under Namespace
Classes: Column, Holder, Printer, Table
Constant Summary collapse
Class Method Summary collapse
-
.define_table(id, opts = {}, &block) ⇒ Tab::Table
Defines a table.
-
.printer(id, io, opts = {}, &block) ⇒ Tab::Printer
Creates a new table printer.
Class Method Details
.define_table(id, opts = {}, &block) ⇒ Tab::Table
Defines a table.
316 317 318 |
# File 'lib/term_utils/tab.rb', line 316 def self.define_table(id, opts = {}, &block) @@default_holder.define_table(id, opts = {}, &block) end |
.printer(id, io, opts = {}, &block) ⇒ Tab::Printer
Creates a new table printer.
327 328 329 |
# File 'lib/term_utils/tab.rb', line 327 def self.printer(id, io, opts = {}, &block) @@default_holder.find_table(id).printer(io, opts, &block) end |