Class: Panache::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/panache.rb

Instance Method Summary collapse

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



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