Exception: NameError

Inherits:
Exception
  • Object
show all
Defined in:
lib/fuckitruby/name_error.rb

Instance Method Summary collapse

Instance Method Details

#eObject



7
# File 'lib/fuckitruby/name_error.rb', line 7

alias_method :e, :exception

#exceptionObject



9
10
11
12
# File 'lib/fuckitruby/name_error.rb', line 9

def exception
  @bindings = binding.callers
  e
end

#messageObject



14
15
16
17
# File 'lib/fuckitruby/name_error.rb', line 14

def message
  error_dialog *fix_for_name
  exec("ruby #{backtrace_locations[0].absolute_path}")
end