Ejemplo n.º 1
0
  public static IRubyObject multipleAsgnArrayNode(
      Ruby runtime,
      ThreadContext context,
      MultipleAsgnNode iVisited,
      ArrayNode node,
      IRubyObject self,
      Block aBlock) {
    IRubyObject[] array = new IRubyObject[node.size()];

    for (int i = 0; i < node.size(); i++) {
      array[i] = node.get(i).interpret(runtime, context, self, aBlock);
    }
    return AssignmentVisitor.multiAssign(
        runtime, context, self, iVisited, RubyArray.newArrayNoCopyLight(runtime, array), false);
  }