Top Description Fields Constructors Methods
org.jruby

public Class RubyChain

extends RubyObject
Class Inheritance
Annotations
@JRubyClass
name:Enumerator::Chain
Imports
org.jruby.anno.JRubyClass, .JRubyMethod, org.jruby.runtime.Block, .Helpers, .JavaSites.FiberSites, .ThreadContext, .Visibility, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList

Implements Enumerator::Chain

Field Summary

Modifier and TypeField and Description
private IRubyObject[]
private int
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

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

public
RubyChain(Ruby runtime, RubyClass klass, IRubyObject[] enums)

Method Summary

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

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

private static IRubyObject
private static JavaSites.FiberSites
public IRubyObject
public RubyString
inspect(ThreadContext context)

Overrides org.jruby.RubyBasicObject.inspect.

Overrides default org.jruby.runtime.builtin.IRubyObject.inspect.

Returns a string containing a human-readable representation of obj.

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

A size method suitable for lambda method reference implementation of SizeFn#size(ThreadContext, IRubyObject, IRubyObject[])

public IRubyObject
public IRubyObject
with_index(ThreadContext context, final Block block)

public IRubyObject
with_index(ThreadContext context, IRubyObject arg, final Block block)

Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString

Field Detail

enumsback to summary
private IRubyObject[] enums
posback to summary
private int pos

Constructor Detail

RubyChainback to summary
public RubyChain(Ruby runtime, RubyClass klass)
RubyChainback to summary
public RubyChain(Ruby runtime, RubyClass klass, IRubyObject[] enums)

Method Detail

createChainClassback to summary
public static RubyClass createChainClass(ThreadContext context, RubyClass Object, RubyClass Enumerator, RubyModule Enumerable)
dupback to summary
public IRubyObject dup()

Overrides org.jruby.RubyBasicObject.dup.

Implements org.jruby.runtime.builtin.IRubyObject.dup.

Doc from org.jruby.runtime.builtin.IRubyObject.dup.

RubyMethod dup.

Returns:IRubyObject

a dup-ed object

Annotations
@JRubyMethod
name:dup
@Override
eachback to summary
public IRubyObject each(ThreadContext context, IRubyObject[] args, Block block)
Annotations
@JRubyMethod
rest:true
enumChainTotalSizeback to summary
private static IRubyObject enumChainTotalSize(ThreadContext context, IRubyObject[] args)
fiberSitesback to summary
private static JavaSites.FiberSites fiberSites(ThreadContext context)
initializeback to summary
public IRubyObject initialize(ThreadContext context, IRubyObject[] args)
Annotations
@JRubyMethod
name:initialize
rest:true
visibility:PRIVATE
inspectback to summary
public RubyString inspect(ThreadContext context)

Overrides org.jruby.RubyBasicObject.inspect.

Overrides default org.jruby.runtime.builtin.IRubyObject.inspect.

Doc from org.jruby.RubyBasicObject.inspect.

Returns a string containing a human-readable representation of obj. If not overridden, uses the to_s method to generate the string. [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"

Annotations
@JRubyMethod
newChainback to summary
public static RubyChain newChain(ThreadContext context, IRubyObject[] enums)
op_plusback to summary
public IRubyObject op_plus(ThreadContext context, IRubyObject obj)
Annotations
@JRubyMethod
name:+
rewindback to summary
public IRubyObject rewind(ThreadContext context)
Annotations
@JRubyMethod
sizeback to summary
private static IRubyObject size(ThreadContext context, RubyChain self, IRubyObject[] args)

A size method suitable for lambda method reference implementation of SizeFn#size(ThreadContext, IRubyObject, IRubyObject[])

See Also
SizeFn#size(ThreadContext, IRubyObject, IRubyObject[])
sizeback to summary
public IRubyObject size(ThreadContext context)
Annotations
@JRubyMethod
with_indexback to summary
public IRubyObject with_index(ThreadContext context, final Block block)
Annotations
@JRubyMethod
name:with_index
with_indexback to summary
public IRubyObject with_index(ThreadContext context, IRubyObject arg, final Block block)
Annotations
@JRubyMethod
name:with_index