diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-11 14:08:50 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-11 14:08:50 +0000 |
commit | f627ed45146f53875f2fbb88379f2a4ba81f81b8 (patch) | |
tree | 2d44f7175f0405cf82be0d10040f96acea60a9eb /lib/forwardable.rb | |
parent | 3261d3f3cc64aa154fe58c55507dcd957ae3247f (diff) |
* lib/forwardable.rb (_delegator_method): get rid of a warning which
causes test failures introduced at r55376.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/forwardable.rb')
-rw-r--r-- | lib/forwardable.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/forwardable.rb b/lib/forwardable.rb index fce560db81..aa45d41a31 100644 --- a/lib/forwardable.rb +++ b/lib/forwardable.rb @@ -202,7 +202,9 @@ module Forwardable else iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym end - method = "__send__ :#{method}," + method_call = "__send__(:#{method}, *args, &block)" + else + method_call = "#{method}(*args, &block)" end line_no = __LINE__+1; str = "#{<<-"begin;"}\n#{<<-"end;"}" @@ -211,7 +213,7 @@ module Forwardable def #{ali}(*args, &block) begin #{accessor} - end.#{method} *args, &block + end.#{method_call} end end end; |