private static class RubyEnumerator.ArrayNexter extends RubyEnumerator.Nexter
| Modifier and Type | Field and Description |
|---|---|
private RubyArray |
array |
private int |
index |
method, methodArgs, object, runtime| Constructor and Description |
|---|
ArrayNexter(Ruby runtime,
IRubyObject object,
java.lang.String method,
IRubyObject[] methodArgs) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkIndex() |
protected IRubyObject |
get() |
IRubyObject |
next() |
IRubyObject |
peek() |
void |
shutdown() |
private final RubyArray array
private int index
public ArrayNexter(Ruby runtime, IRubyObject object, java.lang.String method, IRubyObject[] methodArgs)
public IRubyObject next()
next in class RubyEnumerator.Nexterpublic void shutdown()
shutdown in class RubyEnumerator.Nexterpublic IRubyObject peek()
peek in class RubyEnumerator.Nexterprotected IRubyObject get()
private void checkIndex()
throws RaiseException
RaiseException