public Block getFrameBlock() { return getCurrentFrame().getBlock(); }
public Block getFrameBlock() { return getCurrentFrame().getBlock(); }
public Block getFrameBlock() { return getCurrentFrame().getBlock(); }
public Block getFrameBlock() { return getCurrentFrame().getBlock(); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock)); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { IRubyObject argsResult = argsNode.interpret(runtime, context, self, aBlock); if (expandedArguments) { if (argsNode instanceof Splat19Node) argsResult = Helpers.unsplatValue19(argsResult); return context.getCurrentFrame().getBlock().yieldArray(context, argsResult, null, null); } return context.getCurrentFrame().getBlock().yield(context, argsResult); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { IRubyObject argsResult = argsNode.interpret(runtime, context, self, aBlock); if (expandedArguments) { if (argsNode instanceof Splat19Node) argsResult = Helpers.unsplatValue19(argsResult); return context.getCurrentFrame().getBlock().yieldArray(context, argsResult, null, null); } return context.getCurrentFrame().getBlock().yield(context, argsResult); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock)); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock), argument2.interpret(runtime, context, self, aBlock)); } }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock), argument2.interpret(runtime, context, self, aBlock)); } }
@JRubyMethod(name = {"block_given?", "iterator?"}, module = true, visibility = PRIVATE, reads = BLOCK) public static RubyBoolean block_given_p(ThreadContext context, IRubyObject recv) { return context.runtime.newBoolean(context.getCurrentFrame().getBlock().isGiven()); }
@JRubyMethod(name = {"block_given?", "iterator?"}, module = true, visibility = PRIVATE, reads = BLOCK) public static RubyBoolean block_given_p(ThreadContext context, IRubyObject recv) { return context.runtime.newBoolean(context.getCurrentFrame().getBlock().isGiven()); }
@JRubyMethod(name = {"block_given?", "iterator?"}, module = true, visibility = PRIVATE, reads = BLOCK) public static RubyBoolean block_given_p(ThreadContext context, IRubyObject recv) { return context.runtime.newBoolean(context.getCurrentFrame().getBlock().isGiven()); }
@JRubyMethod(name = {"block_given?", "iterator?"}, module = true, visibility = PRIVATE, reads = BLOCK) public static RubyBoolean block_given_p(ThreadContext context, IRubyObject recv) { return context.runtime.newBoolean(context.getCurrentFrame().getBlock().isGiven()); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock), argument2.interpret(runtime, context, self, aBlock), argument3.interpret(runtime, context, self, aBlock)); } }
public static IRubyObject callZSuper(Ruby runtime, ThreadContext context, Block block, IRubyObject self) { // Has the method that is calling super received a block argument if (!block.isGiven()) block = context.getCurrentFrame().getBlock(); return Helpers.invokeSuper(context, self, context.getCurrentScope().getArgValues(), block); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { return context.getCurrentFrame().getBlock().yieldSpecific(context, argument1.interpret(runtime, context, self, aBlock), argument2.interpret(runtime, context, self, aBlock), argument3.interpret(runtime, context, self, aBlock)); } }
public static IRubyObject callZSuper(Ruby runtime, ThreadContext context, Block block, IRubyObject self) { // Has the method that is calling super received a block argument if (!block.isGiven()) block = context.getCurrentFrame().getBlock(); return Helpers.invokeSuper(context, self, context.getCurrentScope().getArgValues(), block); }