Class: Test::Unit::Assertions::AssertionMessage::DelayedLiteral

Inherits:
Object
  • Object
show all
Defined in:
lib/test/unit/assertions.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ DelayedLiteral

Returns a new instance of DelayedLiteral.



1650
1651
1652
# File 'lib/test/unit/assertions.rb', line 1650

def initialize(value)
  @value = value
end

Instance Method Details

#inspectObject



1654
1655
1656
# File 'lib/test/unit/assertions.rb', line 1654

def inspect
  @value.call.to_s
end