Class: DTest::Test::Failure

Inherits:
Object
  • Object
show all
Defined in:
lib/dtest/result.rb

Direct Known Subclasses

Result

Instance Method Summary collapse

Constructor Details

#initializeFailure

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/dtest/result.rb', line 17

def empty?
  @failure.empty?
end

#failureObject



21
22
23
# File 'lib/dtest/result.rb', line 21

def failure
  @failure
end