Beispiel #1
0
  public static RubyProc newProc(
      Ruby runtime, Block block, Block.Type type, String file, int line) {
    RubyProc proc = new RubyProc(runtime, runtime.getProc(), type, file, line);
    proc.setup(block);

    return proc;
  }
Beispiel #2
0
  public static RubyProc newProc(
      Ruby runtime, Block block, Block.Type type, ISourcePosition sourcePosition) {
    RubyProc proc = new RubyProc(runtime, runtime.getProc(), type, sourcePosition);
    proc.callInit(NULL_ARRAY, block);

    return proc;
  }
Beispiel #3
0
  @Deprecated
  public static RubyProc newProc(
      Ruby runtime, Block block, Block.Type type, ISourcePosition sourcePosition) {
    RubyProc proc = new RubyProc(runtime, runtime.getProc(), type, sourcePosition);
    proc.setup(block);

    return proc;
  }
Beispiel #4
0
 public static RubyProc newProc(Ruby runtime, Block.Type type) {
   return new RubyProc(runtime, runtime.getProc(), type);
 }