public IRubyObject allocate(Ruby runtime, RubyClass type) { return new JRubyFiberLocal(runtime, type); } };
@JRubyMethod(name = "with_value", required = 1) public IRubyObject withValue(ThreadContext context, IRubyObject value, Block block) { final Map<Object, IRubyObject> contextVariables; contextVariables = getContextVariables(context); final IRubyObject old_value; old_value = contextVariables.get(this); contextVariables.put(this, value); try { return block.yieldSpecific(context); } finally { contextVariables.put(this, old_value); } }
@JRubyMethod(name = "with_value", required = 1) public IRubyObject withValue(ThreadContext context, IRubyObject value, Block block) { final Map<Object, IRubyObject> contextVariables; contextVariables = getContextVariables(context); final IRubyObject old_value; old_value = contextVariables.get(this); contextVariables.put(this, value); try { return block.yieldSpecific(context); } finally { contextVariables.put(this, old_value); } }
@JRubyMethod(name = "with_value", required = 1) public IRubyObject withValue(ThreadContext context, IRubyObject value, Block block) { final Map<Object, IRubyObject> contextVariables; contextVariables = getContextVariables(context); final IRubyObject old_value; old_value = contextVariables.get(this); contextVariables.put(this, value); try { return block.yieldSpecific(context); } finally { contextVariables.put(this, old_value); } }
public IRubyObject allocate(Ruby runtime, RubyClass type) { return new JRubyFiberLocal(runtime, type); } };
@JRubyMethod(name = "with_value", required = 1) public IRubyObject withValue(ThreadContext context, IRubyObject value, Block block) { final Map<Object, IRubyObject> contextVariables; contextVariables = getContextVariables(context); final IRubyObject old_value; old_value = contextVariables.get(this); contextVariables.put(this, value); try { return block.yieldSpecific(context); } finally { contextVariables.put(this, old_value); } }
public IRubyObject allocate(Ruby runtime, RubyClass type) { return new JRubyFiberLocal(runtime, type); } };
public IRubyObject allocate(Ruby runtime, RubyClass type) { return new JRubyFiberLocal(runtime, type); } };