Permalink
Browse files

Sync up with last head fix (ATTRASSIGNNODE)

git-svn-id: http://svn.codehaus.org/jruby/branches/enebo_block@2828 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 6a0f0a5 commit 32b6eaaa79ff59813930fe46923daee076275ca2 @enebo enebo committed Jan 23, 2007
Showing with 4 additions and 0 deletions.
  1. +4 −0 jruby/src/org/jruby/internal/runtime/methods/EvaluateCallable.java
@@ -29,6 +29,7 @@
***** END LICENSE BLOCK *****/
package org.jruby.internal.runtime.methods;
+import org.jruby.ast.AttrAssignNode;
import org.jruby.ast.CallNode;
import org.jruby.ast.Node;
import org.jruby.ast.types.IArityNode;
@@ -69,6 +70,9 @@ public Arity getArity() {
}
private static Arity procArityOf(Node node) {
+ if (node instanceof AttrAssignNode && node != null) {
+ node = ((AttrAssignNode) node).getArgsNode();
+ }
if (node == null) {
return Arity.optional();
} else if (node instanceof IArityNode) {

0 comments on commit 32b6eaa

Please sign in to comment.