Class: Rubinius
- Inherits:
-
Object
- Object
- Rubinius
- Defined in:
- lib/did_you_mean/core_ext/rubinius.rb
Class Method Summary collapse
Class Method Details
.raise_exception(exc) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/did_you_mean/core_ext/rubinius.rb', line 5 def raise_exception(exc) if exc.is_a?(NoMethodError) bt = Rubinius::VM.backtrace(0, true).detect do |x| x.method.name == :method_missing end exc.instance_variable_set(:@receiver, bt.variables.self) if bt end raise_with_no_receiver_capturer(exc) end |
.raise_with_no_receiver_capturer ⇒ Object
3 |
# File 'lib/did_you_mean/core_ext/rubinius.rb', line 3 alias raise_with_no_receiver_capturer raise_exception |