Class: Test::Unit::Assertions::AssertExceptionHelper::WrappedException
- Inherits:
-
Object
- Object
- Test::Unit::Assertions::AssertExceptionHelper::WrappedException
show all
- Defined in:
- lib/test/unit/assertions.rb
Instance Method Summary
collapse
Constructor Details
1759
1760
1761
|
# File 'lib/test/unit/assertions.rb', line 1759
def initialize(exception)
@exception = exception
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
1771
1772
1773
|
# File 'lib/test/unit/assertions.rb', line 1771
def method_missing(name, *args, &block)
@exception.__send__(name, *args, &block)
end
|
Instance Method Details
#inspect ⇒ Object
1763
1764
1765
1766
1767
1768
1769
|
# File 'lib/test/unit/assertions.rb', line 1763
def inspect
if default_inspect?
"#{@exception.class.inspect}(#{@exception.message.inspect})"
else
@exception.inspect
end
end
|