@JRubyMethod(name = "receiver") public IRubyObject receiver(ThreadContext context) { return binding.getSelf(); } }
@Deprecated public static IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, Binding binding) { return evalWithBinding(context, binding.getSelf(), src, binding); }
@JRubyMethod(name = "receiver") public IRubyObject receiver(ThreadContext context) { return binding.getSelf(); } }
@Deprecated public static IRubyObject evalWithBinding(ThreadContext context, IRubyObject src, Binding binding) { return evalWithBinding(context, binding.getSelf(), src, binding); }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
protected IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
public static IRubyObject useBindingSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
public static IRubyObject useBindingSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
protected IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
private IRubyObject prepareSelf(Binding binding) { IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self; }
@JRubyMethod public IRubyObject self(ThreadContext context) { return binding.isNil() ? context.nil : ((RubyBinding)binding).getBinding().getSelf(); }
public IRubyObject call() throws Exception { ThreadContext context = runtime.getCurrentContext(); try { return body.call(context); } catch (RaiseException re) { RubyKernel.puts(context, body.getBinding().getSelf(), new IRubyObject[] { RubyString.newString(runtime, "joroutine terminated with error: " + re.getMessage())}); RubyKernel.puts(context, body.getBinding().getSelf(), new IRubyObject[] {re.getException().backtrace()}); throw re; } }
public Block cloneBlockAndFrame() { Binding oldBinding = binding; Binding binding = new Binding( oldBinding.getSelf(), oldBinding.getFrame().duplicate(), oldBinding.getVisibility(), oldBinding.getKlass(), oldBinding.getDynamicScope(), oldBinding.getBacktrace()); Block newBlock = new Block(body, binding); newBlock.type = type; newBlock.escapeBlock = this; return newBlock; }
public Block cloneBlockAndFrame() { Binding oldBinding = binding; Binding binding = new Binding( oldBinding.getSelf(), oldBinding.getFrame().duplicate(), oldBinding.getVisibility(), oldBinding.getKlass(), oldBinding.getDynamicScope(), oldBinding.getBacktrace()); Block newBlock = new Block(body, binding); newBlock.type = type; newBlock.escapeBlock = this; return newBlock; }