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
7
8
9
10
# File 'lib/exception_extensions/exception_path_traverser.rb', line 3

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