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.



2005
2006
2007
# File 'lib/test/unit/assertions.rb', line 2005

def initialize(value)
  @value = value
end

Instance Method Details

#inspectObject



2009
2010
2011
# File 'lib/test/unit/assertions.rb', line 2009

def inspect
  @value.call.to_s
end