Top Description Fields Constructors Methods
org.jruby

public Class RubyProducer

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:Enumerator::Producer
Imports
org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.exceptions.StopIteration, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject

Implements Enumerator::Producer

Field Summary

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

Constructor Summary

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

public
RubyProducer(Ruby runtime, RubyClass klass, IRubyObject init, final Block block)

Method Summary

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

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

public static RubyProducer
newProducer(ThreadContext context, IRubyObject init, final Block block)

public static IRubyObject
size(ThreadContext context, RubyProducer self, IRubyObject[] args)

MRI: producer_size

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

initback to summary
private IRubyObject init
producerBlockback to summary
private Block producerBlock

Constructor Detail

RubyProducerback to summary
public RubyProducer(Ruby runtime, RubyClass klass)
RubyProducerback to summary
public RubyProducer(Ruby runtime, RubyClass klass, IRubyObject init, final Block block)

Method Detail

createProducerClassback to summary
public static RubyClass createProducerClass(ThreadContext context, RubyClass Object, RubyClass Enumerator, RubyModule Enumerable)
eachback to summary
public IRubyObject each(ThreadContext context, IRubyObject[] args, final Block block)
Annotations
@JRubyMethod
rest:true
newProducerback to summary
public static RubyProducer newProducer(ThreadContext context, IRubyObject init, final Block block)
sizeback to summary
public static IRubyObject size(ThreadContext context, RubyProducer self, IRubyObject[] args)

MRI: producer_size