Sha256: 6f5fb3b7c7d3444a64f077f8b429390c1cc5887b2019afcb218ec226fe37d8a5
Contents?: true
Size: 421 Bytes
Versions: 2
Compression:
Stored size: 421 Bytes
Contents
if defined?(Rubinius) class << Rubinius alias raise_with_no_receiver_capturer raise_exception 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
did_you_mean-0.10.0-java | lib/did_you_mean/core_ext/rubinius.rb |
did_you_mean-0.10.0 | lib/did_you_mean/core_ext/rubinius.rb |