Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make Kernel#method_missing override less naughty #237

Closed
wants to merge 1 commit into from

2 participants

@jwilger

I filed an issue about it. Not sure if there's a way to relate these after the fact. We'll see.

@dchelimsky
Owner

Unfortunately not - but thanks for the pull request.

@jwilger

We'll do it backwards, then. Here's the issue. :-)

https://github.com/rspec/rspec-core/issues#issue/236

@dchelimsky
Owner

Actually I'd rather use the pull request (which also created issue #237)

@jwilger

Fix Kernel#method_missing override so that it gets along with REE 1.8.7-2010.02

@dchelimsky
Owner

FYI - I removed _stuff from the method name

@timcharper timcharper referenced this pull request from a commit in timcharper/rspec-core
@jwilger jwilger Fix Kernel#method_missing override so that it gets along with REE 1.8…
….7-2010.02

- Closes #237.
4cb4c22
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 29, 2010
  1. @jwilger
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/rspec/core/extensions/kernel.rb
View
4 lib/rspec/core/extensions/kernel.rb
@@ -2,6 +2,8 @@ module Kernel
private
+ alias_method :method_missing_without_debugger_stuff, :method_missing
+
def method_missing(m, *a)
if m.to_s == 'debugger'
begin
@@ -19,7 +21,7 @@ def method_missing(m, *a)
EOM
end
else
- super
+ method_missing_without_debugger_stuff(m, *a)
end
end
end
Something went wrong with that request. Please try again.