Class: ExceptionExtensions::ExceptionTraverser
- Inherits:
-
Object
- Object
- ExceptionExtensions::ExceptionTraverser
- Includes:
- Enumerable
- Defined in:
- lib/exception_extensions/exception_traverser.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
-
#initialize(exception) ⇒ ExceptionTraverser
constructor
A new instance of ExceptionTraverser.
Constructor Details
#initialize(exception) ⇒ ExceptionTraverser
Returns a new instance of ExceptionTraverser.
6 7 8 |
# File 'lib/exception_extensions/exception_traverser.rb', line 6 def initialize(exception) @exception = exception end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
4 5 6 |
# File 'lib/exception_extensions/exception_traverser.rb', line 4 def exception @exception end |