Class: ExceptionExtensions::ExceptionPathTraverser

Inherits:
ExceptionTraverser show all
Defined in:
lib/exception_extensions/exception_path_traverser.rb

Instance Attribute Summary

Attributes inherited from ExceptionTraverser

#exception

Instance Method Summary collapse

Methods inherited from ExceptionTraverser

#initialize

Constructor Details

This class inherits a constructor from ExceptionExtensions::ExceptionTraverser

Instance Method Details

#each(&block) ⇒ Object



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

def each(&block)
  return if @exception.nil?
  each_internal(@exception, [], &block)
end