Class: ExceptionExtensions::ExceptionTraverser

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/exception_extensions/exception_traverser.rb

Direct Known Subclasses

ExceptionPathTraverser

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionObject (readonly)

Returns the value of attribute exception.



4
5
6
# File 'lib/exception_extensions/exception_traverser.rb', line 4

def exception
  @exception
end