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; }
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; }
@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; }
public static RubyProc newProc(Ruby runtime, Block.Type type) { return new RubyProc(runtime, runtime.getProc(), type); }