示例#1
0
  public MethodBlock(RubyMethod method, StaticScope staticScope) {
    super(
        staticScope,
        Arity.createArity((int) method.arity().getLongValue()),
        BlockBody.SINGLE_RESTARG);

    this.method = method;
    String filename = method.getFilename();
    if (filename == null) filename = "(method)";
    this.filename = filename;
    this.line = method.getLine();
  }