Class: Test::Unit::Assertions::AssertExceptionHelper::WrappedException
- Inherits:
-
Object
- Object
- Test::Unit::Assertions::AssertExceptionHelper::WrappedException
- Defined in:
- lib/test/unit/assertions.rb
Instance Method Summary collapse
-
#initialize(exception) ⇒ WrappedException
constructor
A new instance of WrappedException.
- #inspect ⇒ Object
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(exception) ⇒ WrappedException
Returns a new instance of WrappedException.
1733 1734 1735 |
# File 'lib/test/unit/assertions.rb', line 1733 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
1745 1746 1747 |
# File 'lib/test/unit/assertions.rb', line 1745 def method_missing(name, *args, &block) @exception.send(name, *args, &block) end |
Instance Method Details
#inspect ⇒ Object
1737 1738 1739 1740 1741 1742 1743 |
# File 'lib/test/unit/assertions.rb', line 1737 def inspect if default_inspect? "#{@exception.class.inspect}(#{@exception..inspect})" else @exception.inspect end end |