Class: Formatter
- Inherits:
-
Object
- Object
- Formatter
- Defined in:
- lib/chelsea/formatters/formatter.rb
Overview
Base formatter class
Direct Known Subclasses
Chelsea::JsonFormatter, Chelsea::TextFormatter, Chelsea::XMLFormatter
Instance Method Summary collapse
- #do_print ⇒ Object
- #fetch_results ⇒ Object
-
#initialize ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize ⇒ Formatter
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_print ⇒ Object
29 30 31 |
# File 'lib/chelsea/formatters/formatter.rb', line 29 def do_print raise 'must implement do_print method in subclass' end |
#fetch_results ⇒ Object
25 26 27 |
# File 'lib/chelsea/formatters/formatter.rb', line 25 def fetch_results raise 'must implement get_results method in subclass' end |