Class: Panache::Printer
- Inherits:
-
Object
- Object
- Panache::Printer
- Defined in:
- lib/panache.rb
Instance Method Summary collapse
-
#initialize(results, output_type = :normal) ⇒ Printer
constructor
A new instance of Printer.
- #print_results ⇒ Object
Constructor Details
#initialize(results, output_type = :normal) ⇒ Printer
Returns a new instance of Printer.
119 120 121 122 |
# File 'lib/panache.rb', line 119 def initialize(results, output_type = :normal) @results = results @output_type = output_type end |
Instance Method Details
#print_results ⇒ Object
124 125 126 127 128 129 |
# File 'lib/panache.rb', line 124 def print_results case @output_type when :normal then print_normal else print normal end end |