summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-15 08:07:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-15 08:07:39 +0000
commitca5739979dc932e809cb70d243ecc07d380d2725 (patch)
tree69296750e2afc4d25a0466cb3f51ac1668334923 /lib
parent3eac78dd88982c2f1388d7a974c58ed5d2214e12 (diff)
delegate.rb: get rid of global function interference
* lib/delegate.rb (Delegator#send): override to get rid of global function interference. [Fixes GH-449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/delegate.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index a2ca46fafa..74b13aa8a3 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -74,6 +74,7 @@ class Delegator < BasicObject
$@.delete_if {|t| %r"\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:"o =~ t} if $@
end
end
+ alias send method_missing
#
# Checks for a method provided by this the delegate object by forwarding the