Class: Spackle::Spec::BaseFormatter
- Inherits:
-
Spec::Runner::Formatter::BaseFormatter
- Object
- Spec::Runner::Formatter::BaseFormatter
- Spackle::Spec::BaseFormatter
- Defined in:
- lib/spackle/spec/base_formatter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(options, output) ⇒ BaseFormatter
constructor
A new instance of BaseFormatter.
Constructor Details
#initialize(options, output) ⇒ BaseFormatter
Returns a new instance of BaseFormatter.
11 12 13 14 15 16 |
# File 'lib/spackle/spec/base_formatter.rb', line 11 def initialize(, output) # we ignore output, for now Spackle.init @options = self.errors = [] end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
9 10 11 |
# File 'lib/spackle/spec/base_formatter.rb', line 9 def errors @errors end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/spackle/spec/base_formatter.rb', line 8 def @options end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
8 9 10 |
# File 'lib/spackle/spec/base_formatter.rb', line 8 def output @output end |
Instance Method Details
#close ⇒ Object
18 19 20 |
# File 'lib/spackle/spec/base_formatter.rb', line 18 def close Spackle.test_finished errors end |