Class: AssertResult Abstract
Overview
This class is abstract.
Contains the base class for all assertion results
Direct Known Subclasses
Instance Attribute Summary collapse
-
#index ⇒ Object
writeonly
Sets the attribute index.
Instance Method Summary collapse
-
#initialize(message, index) ⇒ AssertResult
constructor
A new instance of AssertResult.
- #report(spacer_count = 0) ⇒ Object
Methods included from Result
#failures, #neutrals, #successes
Constructor Details
#initialize(message, index) ⇒ AssertResult
Returns a new instance of AssertResult.
51 52 53 54 |
# File 'lib/test_result.rb', line 51 def initialize(, index) @message = @index = index end |
Instance Attribute Details
#index=(value) ⇒ Object (writeonly)
Sets the attribute index
49 50 51 |
# File 'lib/test_result.rb', line 49 def index=(value) @index = value end |
Instance Method Details
#report(spacer_count = 0) ⇒ Object
56 57 58 |
# File 'lib/test_result.rb', line 56 def report(spacer_count = 0) generate_spacer(spacer_count) end |