* 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
@ -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>
|
Fri Jun 13 09:24:39 2003 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* lib/net/ftp.rb (storebinary): seek correctly. Thanks, William Webber.
|
* 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);
|
return INT2FIX(1);
|
||||||
case NODE_IVAR:
|
case NODE_IVAR:
|
||||||
return INT2FIX(0);
|
return INT2FIX(0);
|
||||||
|
case NODE_BMETHOD:
|
||||||
|
case NODE_DMETHOD:
|
||||||
|
return block_arity(method);
|
||||||
default:
|
default:
|
||||||
body = body->nd_next; /* skip NODE_SCOPE */
|
body = body->nd_next; /* skip NODE_SCOPE */
|
||||||
if (nd_type(body) == NODE_BLOCK)
|
if (nd_type(body) == NODE_BLOCK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user