Class: Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/chelsea/formatters/formatter.rb

Overview

Base formatter class

Instance Method Summary collapse

Constructor Details

#initializeFormatter

Returns a new instance of Formatter.



21
22
23
# File 'lib/chelsea/formatters/formatter.rb', line 21

def initialize
  @pastel = Pastel.new
end

Instance Method Details

#do_printObject



29
30
31
# File 'lib/chelsea/formatters/formatter.rb', line 29

def do_print
  raise 'must implement do_print method in subclass'
end

#fetch_resultsObject



25
26
27
# File 'lib/chelsea/formatters/formatter.rb', line 25

def fetch_results
  raise 'must implement get_results method in subclass'
end