Class: DTest::Test::Failure
- Inherits:
-
Object
- Object
- DTest::Test::Failure
- Defined in:
- lib/dtest/result.rb
Direct Known Subclasses
Instance Method Summary collapse
- #<<(s) ⇒ Object
- #empty? ⇒ Boolean
- #failure ⇒ Object
-
#initialize ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize ⇒ Failure
Returns a new instance of Failure.
9 10 11 |
# File 'lib/dtest/result.rb', line 9 def initialize @failure = [] end |
Instance Method Details
#<<(s) ⇒ Object
13 14 15 |
# File 'lib/dtest/result.rb', line 13 def <<(s) @failure << s end |
#empty? ⇒ Boolean
17 18 19 |
# File 'lib/dtest/result.rb', line 17 def empty? @failure.empty? end |
#failure ⇒ Object
21 22 23 |
# File 'lib/dtest/result.rb', line 21 def failure @failure end |