Module: Tapp::Printer
- Defined in:
- lib/tapp/printer.rb,
lib/tapp/printer/puts.rb,
lib/tapp/printer/pretty_print.rb
Defined Under Namespace
Classes: Base, PrettyPrint, Puts
Class Method Summary collapse
Class Method Details
.instance(name) ⇒ Object
12 13 14 |
# File 'lib/tapp/printer.rb', line 12 def instance(name) @printers.fetch(name).instance end |
.register(name, printer) ⇒ Object
8 9 10 |
# File 'lib/tapp/printer.rb', line 8 def register(name, printer) @printers[name] = printer end |