mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (method_arity): should handle NODE_BMETHOD and
NODE_DMETHOD. [ruby-core:01138] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e0a5ffa941
commit
d616f6005c
2 changed files with 15 additions and 7 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Sat Jun 14 17:59:59 2003 Guy Decoux <ts@moulon.inra.fr>
|
||||
|
||||
* eval.c (method_arity): should handle NODE_BMETHOD and
|
||||
NODE_DMETHOD. [ruby-core:01138]
|
||||
|
||||
Fri Jun 13 09:24:39 2003 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.
|
||||
|
|
|
|||
3
eval.c
3
eval.c
|
|
@ -7444,6 +7444,9 @@ method_arity(method)
|
|||
return INT2FIX(1);
|
||||
case NODE_IVAR:
|
||||
return INT2FIX(0);
|
||||
case NODE_BMETHOD:
|
||||
case NODE_DMETHOD:
|
||||
return block_arity(method);
|
||||
default:
|
||||
body = body->nd_next; /* skip NODE_SCOPE */
|
||||
if (nd_type(body) == NODE_BLOCK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue