Exception: Exception

Defined in:
lib/enhanced/exception.rb

Overview

exception.rb

Instance Method Summary collapse

Instance Method Details

#binding_infosObject



15
16
17
# File 'lib/enhanced/exception.rb', line 15

def binding_infos
  @binding_infos ||= []
end

#captured_variablesObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/enhanced/exception.rb', line 4

def captured_variables
  if binding_infos.any?
    bindings_of_interest = select_binding_infos
    EnhancedErrors.format(bindings_of_interest)
  else
    ''
  end
rescue
  ''
end