Class: Dobby::Formatter::AbstractFormatter
- Inherits:
-
Object
- Object
- Dobby::Formatter::AbstractFormatter
- Defined in:
- lib/dobby/formatter/abstract_formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #file_finished(file, results) ⇒ Object
-
#file_started(file) ⇒ Object
Called when starting work for a single file.
- #finished(files) ⇒ Object
-
#initialize(output, options = {}) ⇒ AbstractFormatter
constructor
A new instance of AbstractFormatter.
-
#started(target_files) ⇒ Object
Called once before starting work.
Constructor Details
#initialize(output, options = {}) ⇒ AbstractFormatter
Returns a new instance of AbstractFormatter.
9 10 11 12 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 9 def initialize(output, = {}) @output = output @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 7 def @options end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 6 def output @output end |
Instance Method Details
#file_finished(file, results) ⇒ Object
20 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 20 def file_finished(file, results); end |
#file_started(file) ⇒ Object
Called when starting work for a single file.
18 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 18 def file_started(file); end |
#finished(files) ⇒ Object
22 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 22 def finished(files); end |
#started(target_files) ⇒ Object
Called once before starting work.
15 |
# File 'lib/dobby/formatter/abstract_formatter.rb', line 15 def started(target_files); end |