@JRubyMethod( name = {"call", "[]"}, rest = true) public IRubyObject call(ThreadContext context, IRubyObject[] args) { if (disabled) { RubyKernel.raise( context, context.runtime.getThreadError(), new IRubyObject[] { context.runtime.newString("continuations can not be called from outside their scope") }, Block.NULL_BLOCK); } continuation.args = args; throw continuation; }