Class: Test::Unit::Assertions::AssertionMessage::DelayedLiteral
- Inherits:
-
Object
- Object
- Test::Unit::Assertions::AssertionMessage::DelayedLiteral
- Defined in:
- lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb,
lib/test/unit/assertions.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ DelayedLiteral
constructor
A new instance of DelayedLiteral.
-
#inspect ⇒ Object
Constructor Details
#initialize(value) ⇒ DelayedLiteral
Returns a new instance of DelayedLiteral
1997 1998 1999 |
# File 'lib/test/unit/assertions.rb', line 1997 def initialize(value) @value = value end |
Instance Method Details
#inspect ⇒ Object
2001 2002 2003 |
# File 'lib/test/unit/assertions.rb', line 2001 def inspect @value.call.to_s end |