public String getFile() { return proc.getBlock().getBody().getFile(); }
public String getFile() { return proc.getBlock().getBody().getFile(); }
public String getFile() { return proc.getBlock().getBody().getFile(); }
public String getFile() { return proc.getBlock().getBody().getFile(); }
@JRubyMethod(name = "to_s", compat = RUBY1_9) public IRubyObject to_s19() { StringBuilder sb = new StringBuilder("#<Proc:0x" + Integer.toString(block.hashCode(), 16) + "@" + block.getBody().getFile() + ":" + (block.getBody().getLine() + 1)); if (isLambda()) sb.append(" (lambda)"); sb.append(">"); return RubyString.newString(getRuntime(), sb.toString()); }
@JRubyMethod(name = "to_s", compat = RUBY1_9) public IRubyObject to_s19() { StringBuilder sb = new StringBuilder("#<Proc:0x" + Integer.toString(block.hashCode(), 16) + "@" + block.getBody().getFile() + ":" + (block.getBody().getLine() + 1)); if (isLambda()) sb.append(" (lambda)"); sb.append(">"); return RubyString.newString(getRuntime(), sb.toString()); }
@JRubyMethod(name = "to_s", compat = RUBY1_8) @Override public IRubyObject to_s() { return RubyString.newString( getRuntime(),"#<Proc:0x" + Integer.toString(block.hashCode(), 16) + "@" + block.getBody().getFile() + ":" + (block.getBody().getLine() + 1) + ">"); }
@JRubyMethod(name = "to_s", compat = RUBY1_8) @Override public IRubyObject to_s() { return RubyString.newString( getRuntime(),"#<Proc:0x" + Integer.toString(block.hashCode(), 16) + "@" + block.getBody().getFile() + ":" + (block.getBody().getLine() + 1) + ">"); }
@Override @JRubyMethod(name = "to_s", alias = "inspect") public IRubyObject to_s() { Ruby runtime = getRuntime(); RubyString string = runtime.newString("#<"); string.append(types(runtime, type())); string.catString(":0x" + Integer.toString(System.identityHashCode(block), 16)); String file = block.getBody().getFile(); if (file != null) string.catString("@" + file + ":" + (block.getBody().getLine() + 1)); if (isLambda()) string.catString(" (lambda)"); string.catString(">"); if (isTaint()) string.setTaint(true); return string; }
@Override @JRubyMethod(name = "to_s", alias = "inspect") public IRubyObject to_s() { Ruby runtime = getRuntime(); RubyString string = runtime.newString("#<"); string.append(types(runtime, type())); string.catString(":0x" + Integer.toString(System.identityHashCode(block), 16)); String file = block.getBody().getFile(); if (file != null) string.catString("@" + file + ":" + (block.getBody().getLine() + 1)); if (isLambda()) string.catString(" (lambda)"); string.catString(">"); if (isTaint()) string.setTaint(true); return string; }
block.getBinding().setFile(block.getBody().getFile()); block.getBinding().setLine(block.getBody().getLine());
block.getBinding().setFile(block.getBody().getFile()); block.getBinding().setLine(block.getBody().getLine());
block.getBinding().setFile(block.getBody().getFile()); block.getBinding().setLine(block.getBody().getLine());
block.getBinding().setFile(block.getBody().getFile()); block.getBinding().setLine(block.getBody().getLine());