org.jruby
Class RubyEnumerator.ConsecutiveBlockCallback

java.lang.Object
  extended byorg.jruby.RubyEnumerator.ConsecutiveBlockCallback
All Implemented Interfaces:
BlockCallback
Enclosing class:
RubyEnumerator

public static class RubyEnumerator.ConsecutiveBlockCallback
extends java.lang.Object
implements BlockCallback

Block callback for viewing consecutive results from calling the client block


Field Summary
protected  Block clientBlock
           
protected  RubyArray cont
           
protected  long contSize
           
protected  Ruby runtime
           
 
Constructor Summary
RubyEnumerator.ConsecutiveBlockCallback(Ruby runtime, Block clientBlock, long contSize)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject[] args, Block block)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cont

protected final RubyArray cont

contSize

protected final long contSize

clientBlock

protected final Block clientBlock

runtime

protected final Ruby runtime
Constructor Detail

RubyEnumerator.ConsecutiveBlockCallback

public RubyEnumerator.ConsecutiveBlockCallback(Ruby runtime,
                                               Block clientBlock,
                                               long contSize)
Method Detail

call

public IRubyObject call(ThreadContext context,
                        IRubyObject[] args,
                        Block block)
Specified by:
call in interface BlockCallback


Copyright © 2002-2007 JRuby Team. All Rights Reserved.