Package org.jruby
Class RubyEnumerable
java.lang.Object
org.jruby.RubyEnumerable
The implementation of Ruby's Enumerable module.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classprivate static final classstatic final class(package private) static classstatic final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectall_p(ThreadContext context, IRubyObject self, Block block) static IRubyObjectall_p(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectall_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectall_p19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectall_pCommon(ThreadContext context, IRubyObject self, Block block, Arity callbackArity) Deprecated.static IRubyObjectall_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectall_pCommon(ThreadContext localContext, CallSite each, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectany_p(ThreadContext context, IRubyObject self, Block block) static IRubyObjectany_p(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectany_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectany_pCommon(ThreadContext context, IRubyObject self, Block block, Arity callbackArity) Deprecated.static IRubyObjectany_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectany_pCommon(ThreadContext localContext, CallSite site, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectcallEach(Ruby runtime, ThreadContext context, IRubyObject self, BlockCallback callback) Deprecated.static IRubyObjectcallEach(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject[] args, BlockCallback callback) Deprecated.static IRubyObjectcallEach(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) Deprecated.static IRubyObjectcallEach(ThreadContext context, IRubyObject self, BlockCallback callback) static IRubyObjectcallEach(ThreadContext context, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) static IRubyObjectcallEach(ThreadContext context, IRubyObject self, Signature signature, BlockCallback callback) static IRubyObjectcallEach(ThreadContext context, CallSite each, IRubyObject self, BlockCallback callback) static IRubyObjectcallEach(ThreadContext context, CallSite each, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) static IRubyObjectcallEach(ThreadContext context, CallSite each, IRubyObject self, Signature signature, BlockCallback callback) static IRubyObjectcallEach19(Ruby runtime, ThreadContext context, IRubyObject self, BlockCallback callback) Deprecated.static IRubyObjectcallEach19(Ruby runtime, ThreadContext context, IRubyObject self, Signature signature, BlockCallback callback) Deprecated.static IRubyObjectchain(ThreadContext context, IRubyObject self, IRubyObject[] args) private static voidcheckContext(ThreadContext firstContext, ThreadContext secondContext, String name) static IRubyObjectchunk(ThreadContext context, IRubyObject self, Block block) static IRubyObjectchunk(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.static IRubyObjectcollect(ThreadContext context, IRubyObject self, Block block) static IRubyObjectcollect_concat(ThreadContext context, IRubyObject self, Block block) static IRubyObjectcollect_concat19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectcollect19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectcollectCommon(ThreadContext context, Ruby runtime, IRubyObject self, RubyArray result, Block block, BlockCallback blockCallback) Deprecated.private static IRubyObjectcollectCommon(ThreadContext context, IRubyObject self, Block block, String methodName) static IRubyObjectcount(ThreadContext context, IRubyObject self, Block block) static IRubyObjectcount(ThreadContext context, IRubyObject self, IRubyObject methodArg, Block block) static IRubyObjectcount18(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectcount18(ThreadContext context, IRubyObject self, IRubyObject methodArg, Block block) Deprecated.private static IRubyObjectcountCommon(ThreadContext context, CallSite each, IRubyObject self, Block block) static RubyModulecreateEnumerableModule(Ruby runtime) static IRubyObjectcycle(ThreadContext context, IRubyObject self, Block block) static IRubyObjectcycle(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) private static IRubyObjectcycleCommon(ThreadContext context, IRubyObject self, long nv, Block block) private static IRubyObjectcycleSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A cycle size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])static IRubyObjectdetect(ThreadContext context, IRubyObject self, Block block) static IRubyObjectdetect(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) static IRubyObjectdetectCommon(ThreadContext context, IRubyObject self, Block block) static IRubyObjectdetectCommon(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) static IRubyObjectdetectCommon(ThreadContext context, CallSite each, IRubyObject self, Block block) static IRubyObjectdetectCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject ifnone, Block block) static IRubyObjectdrop(ThreadContext context, IRubyObject self, IRubyObject n, Block block) static IRubyObjectdrop_while(ThreadContext context, IRubyObject self, Block block) static IRubyObjecteach(ThreadContext context, IRubyObject self, BlockBody body) static IRubyObjecteach(ThreadContext context, CallSite site, IRubyObject self, BlockBody body) static IRubyObjecteach_cons(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjecteach_cons19(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) Deprecated.(package private) static IRubyObjecteach_consCommon(ThreadContext context, IRubyObject self, int size, Block block) static IRubyObjecteach_entry(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjecteach_entryCommon(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjecteach_slice(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjecteach_slice19(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) Deprecated.(package private) static IRubyObjecteach_sliceCommon(ThreadContext context, IRubyObject self, int size, Block block) static IRubyObjecteach_with_index(ThreadContext context, IRubyObject self, Block block) static IRubyObjecteach_with_index(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjecteach_with_index19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.static IRubyObjecteach_with_indexCommon(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjecteach_with_indexCommon(ThreadContext context, IRubyObject self, Block block, IRubyObject[] args) static IRubyObjecteach_with_indexCommon19(ThreadContext context, IRubyObject self, Block block, IRubyObject[] args) Deprecated.static IRubyObjecteach_with_object(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjecteach_with_objectCommon(ThreadContext context, IRubyObject self, Block block, IRubyObject arg) static IRubyObjecteach_with_objectCommon19(ThreadContext context, IRubyObject self, Block block, IRubyObject arg) Deprecated.private static IRubyObjecteachConsSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A each_cons size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])protected static CachingCallSiteeachSite(ThreadContext context) private static IRubyObjecteachSliceSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A each_slice size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])static IRubyObjectfind(ThreadContext context, IRubyObject self, Block block) static IRubyObjectfind(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) static IRubyObjectfind_all(ThreadContext context, IRubyObject self, Block block) static IRubyObjectfind_index(ThreadContext context, IRubyObject self, Block block) static IRubyObjectfind_index(ThreadContext context, IRubyObject self, IRubyObject cond, Block block) static IRubyObjectfind_index19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectfind_index19(ThreadContext context, IRubyObject self, IRubyObject cond, Block block) Deprecated.static IRubyObjectfind_indexCommon(ThreadContext context, IRubyObject self, Block block, Signature callbackArity) static IRubyObjectfind_indexCommon(ThreadContext context, IRubyObject self, IRubyObject cond) static IRubyObjectfind_indexCommon(ThreadContext context, CallSite each, IRubyObject self, Block block, Signature callbackArity) static IRubyObjectfind_indexCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject cond) static IRubyObjectfirst(ThreadContext context, IRubyObject self) static IRubyObjectfirst(ThreadContext context, IRubyObject self, IRubyObject num) static IRubyObjectflat_map(ThreadContext context, IRubyObject self, Block block) static IRubyObjectflat_map19(ThreadContext context, IRubyObject self, Block block) Deprecated.private static IRubyObjectflatMapCommon(ThreadContext context, IRubyObject self, Block block, String methodName) static IRubyObjectgrep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) private static IRubyObjectgrep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block, boolean isPresent) static IRubyObjectgroup_by(ThreadContext context, IRubyObject self, Block block) static IRubyObjectinclude_p(ThreadContext context, IRubyObject self, IRubyObject arg) static IRubyObjectinject(ThreadContext context, IRubyObject self, Block block) static IRubyObjectinject(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectinject(ThreadContext context, IRubyObject self, IRubyObject init, IRubyObject method, Block block) static IRubyObjectinjectCommon(ThreadContext context, IRubyObject self, IRubyObject init, Block block) static IRubyObjectinverseGrep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectmap(ThreadContext context, IRubyObject self, Block block) static IRubyObjectmap19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectmax(ThreadContext context, IRubyObject self, Block block) static IRubyObjectmax(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectmax_by(ThreadContext context, IRubyObject self, Block block) static IRubyObjectmax_by(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectmin(ThreadContext context, IRubyObject self, Block block) static IRubyObjectmin(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectmin_by(ThreadContext context, IRubyObject self, Block block) static IRubyObjectmin_by(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectminmax(ThreadContext context, IRubyObject self, Block block) static IRubyObjectminmax_by(ThreadContext context, IRubyObject self, Block block) static IRubyObjectnone_p(ThreadContext context, IRubyObject self, Block block) static IRubyObjectnone_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectnone_p19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectnone_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectnone_pCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectone_p(ThreadContext context, IRubyObject self, Block block) static IRubyObjectone_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) static IRubyObjectone_p19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjectone_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) static IRubyObjectone_pCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject pattern, Block block) (package private) static IRubyObjectpackEnumValues(ThreadContext context, IRubyObject[] args) Package the arguments appropriately depending on how many there are Corresponds to rb_enum_values_pack in MRIstatic IRubyObjectpartition(ThreadContext context, IRubyObject self, Block block) static IRubyObjectreject(ThreadContext context, IRubyObject self, Block block) static IRubyObjectreverse_each(ThreadContext context, IRubyObject self, Block block) static IRubyObjectreverse_each(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) private static IRubyObjectreverse_eachInternal(ThreadContext context, IRubyObject self, IRubyObject obj, Block block) static IRubyObjectselect(ThreadContext context, IRubyObject self, Block block) static IRubyObjectselectCommon(ThreadContext context, IRubyObject self, Block block, String methodName) private static IRubyObjectsingleExtent(ThreadContext context, IRubyObject self, String op, int sortDirection, Block block) private static IRubyObjectsingleExtentBy(ThreadContext context, IRubyObject self, String op, int sortDirection, Block block) private static JavaSites.EnumerableSitessites(ThreadContext context) (package private) static IRubyObjectsize(ThreadContext context, IRubyObject self, IRubyObject[] args) A size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[])static IRubyObjectsort(ThreadContext context, IRubyObject self, Block block) static IRubyObjectsort_by(ThreadContext context, IRubyObject self, Block block) static IRubyObjectsum(ThreadContext context, IRubyObject self, Block block) static IRubyObjectsum(ThreadContext context, IRubyObject self, IRubyObject init, Block block) static IRubyObjectsumAdd(ThreadContext context, IRubyObject lhs, IRubyObject rhs, double[] c) static IRubyObjectsumCommon(ThreadContext context, IRubyObject self, IRubyObject init, Block block) static IRubyObjectsumCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject init, Block block) static IRubyObjecttake(ThreadContext context, IRubyObject self, IRubyObject n, Block block) static IRubyObjecttake_while(ThreadContext context, IRubyObject self, Block block) static IRubyObjecttake_while19(ThreadContext context, IRubyObject self, Block block) Deprecated.static IRubyObjecttakeItems(ThreadContext context, IRubyObject enumerable) Take all items from the given enumerable and insert them into a new array.static IRubyObjectto_a(ThreadContext context, IRubyObject self) static IRubyObjectto_a(ThreadContext context, IRubyObject self, IRubyObject[] args) static IRubyObjectto_a19(ThreadContext context, IRubyObject self) Deprecated.static IRubyObjectto_a19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static IRubyObjectto_h(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated.static IRubyObjectto_h(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectuniq(ThreadContext context, IRubyObject self, Block block) static IRubyObjectzip(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectzip19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.static IRubyObjectzipCommon(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectzipCommon19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.static IRubyObjectzipCommonAry(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObject[]zipCommonConvert(Ruby runtime, IRubyObject[] args) Deprecated.static IRubyObject[]zipCommonConvert(Ruby runtime, IRubyObject[] args, String method) Deprecated.static IRubyObjectzipCommonEnum(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) static IRubyObjectzipEnumNext(ThreadContext context, IRubyObject arg)
-
Field Details
-
SORT_MAX
private static final int SORT_MAX- See Also:
-
SORT_MIN
private static final int SORT_MIN- See Also:
-
-
Constructor Details
-
RubyEnumerable
public RubyEnumerable()
-
-
Method Details
-
createEnumerableModule
-
callEach
public static IRubyObject callEach(ThreadContext context, IRubyObject self, Signature signature, BlockCallback callback) -
callEach
public static IRubyObject callEach(ThreadContext context, CallSite each, IRubyObject self, Signature signature, BlockCallback callback) -
callEach
-
callEach
public static IRubyObject callEach(ThreadContext context, CallSite each, IRubyObject self, BlockCallback callback) -
callEach
public static IRubyObject callEach(ThreadContext context, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) -
callEach
public static IRubyObject callEach(ThreadContext context, CallSite each, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) -
each
-
each
public static IRubyObject each(ThreadContext context, CallSite site, IRubyObject self, BlockBody body) -
checkContext
private static void checkContext(ThreadContext firstContext, ThreadContext secondContext, String name) -
count
-
countCommon
private static IRubyObject countCommon(ThreadContext context, CallSite each, IRubyObject self, Block block) -
count
public static IRubyObject count(ThreadContext context, IRubyObject self, IRubyObject methodArg, Block block) -
cycle
-
cycle
public static IRubyObject cycle(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
cycleCommon
private static IRubyObject cycleCommon(ThreadContext context, IRubyObject self, long nv, Block block) -
cycleSize
A cycle size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
take
-
take_while
-
drop
-
drop_while
-
first
-
first
-
to_a
-
to_a
-
to_h
public static IRubyObject to_h(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
sort
-
sort_by
-
grep
public static IRubyObject grep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
inverseGrep
public static IRubyObject inverseGrep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
grep
private static IRubyObject grep(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block, boolean isPresent) -
detectCommon
-
detectCommon
public static IRubyObject detectCommon(ThreadContext context, CallSite each, IRubyObject self, Block block) -
detectCommon
public static IRubyObject detectCommon(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) -
detectCommon
public static IRubyObject detectCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject ifnone, Block block) -
detect
-
detect
public static IRubyObject detect(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) -
find
-
find
public static IRubyObject find(ThreadContext context, IRubyObject self, IRubyObject ifnone, Block block) -
find_index
-
find_index
public static IRubyObject find_index(ThreadContext context, IRubyObject self, IRubyObject cond, Block block) -
find_indexCommon
public static IRubyObject find_indexCommon(ThreadContext context, IRubyObject self, Block block, Signature callbackArity) -
find_indexCommon
public static IRubyObject find_indexCommon(ThreadContext context, CallSite each, IRubyObject self, Block block, Signature callbackArity) -
find_indexCommon
public static IRubyObject find_indexCommon(ThreadContext context, IRubyObject self, IRubyObject cond) -
find_indexCommon
public static IRubyObject find_indexCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject cond) -
selectCommon
public static IRubyObject selectCommon(ThreadContext context, IRubyObject self, Block block, String methodName) -
select
-
find_all
-
reject
-
collect
-
map
-
collectCommon
private static IRubyObject collectCommon(ThreadContext context, IRubyObject self, Block block, String methodName) -
flat_map
-
collect_concat
-
flatMapCommon
private static IRubyObject flatMapCommon(ThreadContext context, IRubyObject self, Block block, String methodName) -
sum
-
sum
public static IRubyObject sum(ThreadContext context, IRubyObject self, IRubyObject init, Block block) -
sumCommon
public static IRubyObject sumCommon(ThreadContext context, IRubyObject self, IRubyObject init, Block block) -
sumCommon
public static IRubyObject sumCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject init, Block block) -
sumAdd
public static IRubyObject sumAdd(ThreadContext context, IRubyObject lhs, IRubyObject rhs, double[] c) -
injectCommon
public static IRubyObject injectCommon(ThreadContext context, IRubyObject self, IRubyObject init, Block block) -
inject
-
inject
public static IRubyObject inject(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
inject
public static IRubyObject inject(ThreadContext context, IRubyObject self, IRubyObject init, IRubyObject method, Block block) -
partition
-
packEnumValues
Package the arguments appropriately depending on how many there are Corresponds to rb_enum_values_pack in MRI -
each_with_indexCommon
public static IRubyObject each_with_indexCommon(ThreadContext context, IRubyObject self, Block block, IRubyObject[] args) -
each_with_objectCommon
public static IRubyObject each_with_objectCommon(ThreadContext context, IRubyObject self, Block block, IRubyObject arg) -
each_with_index
-
each_with_index
public static IRubyObject each_with_index(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
each_with_object
public static IRubyObject each_with_object(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
each_entry
public static IRubyObject each_entry(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
each_entryCommon
public static IRubyObject each_entryCommon(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
each_slice
public static IRubyObject each_slice(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
each_sliceCommon
-
eachSliceSize
private static IRubyObject eachSliceSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A each_slice size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
each_cons
public static IRubyObject each_cons(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
each_consCommon
-
eachConsSize
private static IRubyObject eachConsSize(ThreadContext context, IRubyObject self, IRubyObject[] args) A each_cons size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
reverse_each
-
reverse_each
public static IRubyObject reverse_each(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
reverse_eachInternal
private static IRubyObject reverse_eachInternal(ThreadContext context, IRubyObject self, IRubyObject obj, Block block) -
include_p
-
max
-
max
public static IRubyObject max(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
min
-
min
public static IRubyObject min(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
max_by
-
max_by
public static IRubyObject max_by(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
min_by
-
min_by
public static IRubyObject min_by(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
singleExtent
private static IRubyObject singleExtent(ThreadContext context, IRubyObject self, String op, int sortDirection, Block block) -
singleExtentBy
private static IRubyObject singleExtentBy(ThreadContext context, IRubyObject self, String op, int sortDirection, Block block) -
minmax
-
minmax_by
-
none_p
-
none_p
public static IRubyObject none_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
none_pCommon
public static IRubyObject none_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
none_pCommon
public static IRubyObject none_pCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject pattern, Block block) -
one_p
-
one_p
public static IRubyObject one_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
one_pCommon
public static IRubyObject one_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
one_pCommon
public static IRubyObject one_pCommon(ThreadContext context, CallSite each, IRubyObject self, IRubyObject pattern, Block block) -
all_p
-
all_p
public static IRubyObject all_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
all_p
public static IRubyObject all_p(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
all_pCommon
public static IRubyObject all_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
all_pCommon
public static IRubyObject all_pCommon(ThreadContext localContext, CallSite each, IRubyObject self, IRubyObject pattern, Block block) -
any_p
-
any_p
public static IRubyObject any_p(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) -
any_p
public static IRubyObject any_p(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
any_pCommon
public static IRubyObject any_pCommon(ThreadContext context, IRubyObject self, IRubyObject pattern, Block block) -
any_pCommon
public static IRubyObject any_pCommon(ThreadContext localContext, CallSite site, IRubyObject self, IRubyObject pattern, Block block) -
zip
public static IRubyObject zip(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
zipCommon
public static IRubyObject zipCommon(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
zipCommonAry
public static IRubyObject zipCommonAry(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
zipCommonEnum
public static IRubyObject zipCommonEnum(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) -
takeItems
Take all items from the given enumerable and insert them into a new array. See take_items() in array.c.- Parameters:
context- current contextenumerable- object from which to take- Returns:
- an array of the object's elements
-
zipEnumNext
-
group_by
-
chain
-
chunk
-
uniq
-
size
A size method suitable for lambda method reference implementation ofRubyEnumerator.SizeFn.size(ThreadContext, IRubyObject, IRubyObject[]) -
all_p19
Deprecated. -
all_pCommon
@Deprecated public static IRubyObject all_pCommon(ThreadContext context, IRubyObject self, Block block, Arity callbackArity) Deprecated. -
any_pCommon
@Deprecated public static IRubyObject any_pCommon(ThreadContext context, IRubyObject self, Block block, Arity callbackArity) Deprecated. -
none_p19
@Deprecated public static IRubyObject none_p19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
one_p19
Deprecated. -
eachSite
-
sites
-
callEach
@Deprecated public static IRubyObject callEach(Ruby runtime, ThreadContext context, IRubyObject self, BlockCallback callback) Deprecated. -
callEach19
@Deprecated public static IRubyObject callEach19(Ruby runtime, ThreadContext context, IRubyObject self, BlockCallback callback) Deprecated. -
callEach
@Deprecated public static IRubyObject callEach(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject[] args, BlockCallback callback) Deprecated. -
callEach
@Deprecated public static IRubyObject callEach(Ruby runtime, ThreadContext context, IRubyObject self, IRubyObject[] args, Signature signature, BlockCallback callback) Deprecated. -
callEach19
@Deprecated public static IRubyObject callEach19(Ruby runtime, ThreadContext context, IRubyObject self, Signature signature, BlockCallback callback) Deprecated. -
count18
Deprecated. -
count18
@Deprecated public static IRubyObject count18(ThreadContext context, IRubyObject self, IRubyObject methodArg, Block block) Deprecated. -
take_while19
@Deprecated public static IRubyObject take_while19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
to_a19
Deprecated. -
to_a19
@Deprecated public static IRubyObject to_a19(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
to_h
@Deprecated public static IRubyObject to_h(ThreadContext context, IRubyObject self, IRubyObject[] args) Deprecated. -
find_index19
@Deprecated public static IRubyObject find_index19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
find_index19
@Deprecated public static IRubyObject find_index19(ThreadContext context, IRubyObject self, IRubyObject cond, Block block) Deprecated. -
collect19
@Deprecated public static IRubyObject collect19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
map19
Deprecated. -
collectCommon
@Deprecated public static IRubyObject collectCommon(ThreadContext context, Ruby runtime, IRubyObject self, RubyArray result, Block block, BlockCallback blockCallback) Deprecated. -
flat_map19
@Deprecated public static IRubyObject flat_map19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
collect_concat19
@Deprecated public static IRubyObject collect_concat19(ThreadContext context, IRubyObject self, Block block) Deprecated. -
each_with_indexCommon
@Deprecated public static IRubyObject each_with_indexCommon(ThreadContext context, IRubyObject self, Block block) Deprecated. -
each_with_indexCommon19
@Deprecated public static IRubyObject each_with_indexCommon19(ThreadContext context, IRubyObject self, Block block, IRubyObject[] args) Deprecated. -
each_with_objectCommon19
@Deprecated public static IRubyObject each_with_objectCommon19(ThreadContext context, IRubyObject self, Block block, IRubyObject arg) Deprecated. -
each_with_index19
@Deprecated public static IRubyObject each_with_index19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated. -
each_slice19
@Deprecated public static IRubyObject each_slice19(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) Deprecated. -
each_cons19
@Deprecated public static IRubyObject each_cons19(ThreadContext context, IRubyObject self, IRubyObject arg, Block block) Deprecated. -
zip19
@Deprecated public static IRubyObject zip19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated. -
zipCommonConvert
Deprecated. -
zipCommonConvert
@Deprecated public static IRubyObject[] zipCommonConvert(Ruby runtime, IRubyObject[] args, String method) Deprecated. -
zipCommon19
@Deprecated public static IRubyObject zipCommon19(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated. -
chunk
@Deprecated public static IRubyObject chunk(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) Deprecated.
-