Top Fields Constructors Methods
org.jruby

public Class RubyGenerator

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:Enumerator::Generator
Imports
org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.api.Convert, org.jruby.common.IRubyWarnings, org.jruby.runtime.Arity, .Block, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ArraySupport

Field Summary

Modifier and TypeField and Description
private RubyProc
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
RubyGenerator(Ruby runtime, RubyClass klass)

Method Summary

Modifier and TypeMethod and Description
public static RubyClass
createGeneratorClass(ThreadContext context, RubyClass Object, RubyClass Enumerator, RubyModule Enumerable)

public IRubyObject
each(ThreadContext context, IRubyObject[] args, Block block)

public RubyProc
public IRubyObject
initialize(ThreadContext context, IRubyObject[] args, Block block)

public IRubyObject
initialize_copy(ThreadContext
the thread context
context
,
IRubyObject
the original
other
)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object.

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

procback to summary
private RubyProc proc

Constructor Detail

RubyGeneratorback to summary
public RubyGenerator(Ruby runtime, RubyClass klass)

Method Detail

createGeneratorClassback to summary
public static RubyClass createGeneratorClass(ThreadContext context, RubyClass Object, RubyClass Enumerator, RubyModule Enumerable)
eachback to summary
public IRubyObject each(ThreadContext context, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
rest:true
keywords:true
getProcback to summary
public RubyProc getProc()
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
visibility:PRIVATE
optional:1
checkArity:false
initialize_copyback to summary
public IRubyObject initialize_copy(ThreadContext context, IRubyObject other)

Overrides org.jruby.RubyBasicObject.initialize_copy.

Doc from org.jruby.RubyBasicObject.initialize_copy.

Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.

Parameters
context:ThreadContext

the thread context

other:IRubyObject

the original

Returns:IRubyObject

a copy unless the same thing

Annotations
@JRubyMethod
visibility:PRIVATE