org.jruby
Class RubyEnumerator
java.lang.Object
org.jruby.RubyObject
org.jruby.RubyEnumerator
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class RubyEnumerator
- extends RubyObject
Implementation of Ruby's Enumerator module.
Method Summary |
static void |
defineEnumerator(Ruby runtime)
|
static IRubyObject |
each_cons(IRubyObject self,
IRubyObject arg,
Block block)
|
static IRubyObject |
each_slice(IRubyObject self,
IRubyObject arg,
Block block)
|
static IRubyObject |
each_with_index(IRubyObject self,
Block block)
|
static IRubyObject |
each(IRubyObject self,
IRubyObject[] args,
Block block)
|
static IRubyObject |
enum_cons(IRubyObject self,
IRubyObject arg,
Block block)
|
static IRubyObject |
enum_slice(IRubyObject self,
IRubyObject arg,
Block block)
|
static IRubyObject |
initialize(IRubyObject self,
IRubyObject[] args,
Block block)
|
static IRubyObject |
new_instance(IRubyObject self,
IRubyObject[] args,
Block block)
|
static IRubyObject |
o_to_enum(IRubyObject self,
IRubyObject[] args,
Block block)
|
Methods inherited from class org.jruby.RubyObject |
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, to_s, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
defineEnumerator
public static void defineEnumerator(Ruby runtime)
new_instance
public static IRubyObject new_instance(IRubyObject self,
IRubyObject[] args,
Block block)
initialize
public static IRubyObject initialize(IRubyObject self,
IRubyObject[] args,
Block block)
each
public static IRubyObject each(IRubyObject self,
IRubyObject[] args,
Block block)
o_to_enum
public static IRubyObject o_to_enum(IRubyObject self,
IRubyObject[] args,
Block block)
each_with_index
public static IRubyObject each_with_index(IRubyObject self,
Block block)
each_slice
public static IRubyObject each_slice(IRubyObject self,
IRubyObject arg,
Block block)
each_cons
public static IRubyObject each_cons(IRubyObject self,
IRubyObject arg,
Block block)
enum_slice
public static IRubyObject enum_slice(IRubyObject self,
IRubyObject arg,
Block block)
enum_cons
public static IRubyObject enum_cons(IRubyObject self,
IRubyObject arg,
Block block)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.