mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3261d3f3cc
commit
f627ed4514
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jun 11 23:07:32 2016 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/forwardable.rb (_delegator_method): get rid of a warning which
|
||||||
|
causes test failures introduced at r55376.
|
||||||
|
|
||||||
Sat Jun 11 18:37:58 2016 Marcus Stollsteimer <sto.mar@web.de>
|
Sat Jun 11 18:37:58 2016 Marcus Stollsteimer <sto.mar@web.de>
|
||||||
|
|
||||||
* ext/json/lib/*.rb: Removed some comments. Because these are unnecessary
|
* ext/json/lib/*.rb: Removed some comments. Because these are unnecessary
|
||||||
|
|
|
@ -202,7 +202,9 @@ module Forwardable
|
||||||
else
|
else
|
||||||
iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym
|
iseq.to_a.dig(-1, 1, 1, :mid) == method.to_sym
|
||||||
end
|
end
|
||||||
method = "__send__ :#{method},"
|
method_call = "__send__(:#{method}, *args, &block)"
|
||||||
|
else
|
||||||
|
method_call = "#{method}(*args, &block)"
|
||||||
end
|
end
|
||||||
|
|
||||||
line_no = __LINE__+1; str = "#{<<-"begin;"}\n#{<<-"end;"}"
|
line_no = __LINE__+1; str = "#{<<-"begin;"}\n#{<<-"end;"}"
|
||||||
|
@ -211,7 +213,7 @@ module Forwardable
|
||||||
def #{ali}(*args, &block)
|
def #{ali}(*args, &block)
|
||||||
begin
|
begin
|
||||||
#{accessor}
|
#{accessor}
|
||||||
end.#{method} *args, &block
|
end.#{method_call}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue