org.jruby
Class RubyEnumerable
java.lang.Object
org.jruby.RubyEnumerable
public class RubyEnumerable
- extends java.lang.Object
The implementation of Ruby's Enumerable module.
Method Summary |
static IRubyObject |
all_p(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
any_p(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
BlockCallback callback)
|
static IRubyObject |
collect(ThreadContext context,
IRubyObject self,
Block block)
|
static RubyModule |
createEnumerableModule(Ruby runtime)
|
static IRubyObject |
detect(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
|
static IRubyObject |
each_with_index(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
first_0(ThreadContext context,
IRubyObject self)
|
static IRubyObject |
first_1(ThreadContext context,
IRubyObject self,
IRubyObject num)
|
static IRubyObject |
grep(ThreadContext context,
IRubyObject self,
IRubyObject pattern,
Block block)
|
static IRubyObject |
group_by(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
include_p(ThreadContext context,
IRubyObject self,
IRubyObject arg)
|
static IRubyObject |
inject(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
|
static IRubyObject |
max(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
min(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
partition(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
reject(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
select(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
sort_by(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
sort(ThreadContext context,
IRubyObject self,
Block block)
|
static IRubyObject |
to_a(ThreadContext context,
IRubyObject self)
|
static IRubyObject |
zip(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RubyEnumerable
public RubyEnumerable()
createEnumerableModule
public static RubyModule createEnumerableModule(Ruby runtime)
callEach
public static IRubyObject callEach(Ruby runtime,
ThreadContext context,
IRubyObject self,
BlockCallback callback)
first_0
public static IRubyObject first_0(ThreadContext context,
IRubyObject self)
first_1
public static IRubyObject first_1(ThreadContext context,
IRubyObject self,
IRubyObject num)
to_a
public static IRubyObject to_a(ThreadContext context,
IRubyObject self)
sort
public static IRubyObject sort(ThreadContext context,
IRubyObject self,
Block block)
sort_by
public static IRubyObject sort_by(ThreadContext context,
IRubyObject self,
Block block)
grep
public static IRubyObject grep(ThreadContext context,
IRubyObject self,
IRubyObject pattern,
Block block)
detect
public static IRubyObject detect(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
select
public static IRubyObject select(ThreadContext context,
IRubyObject self,
Block block)
reject
public static IRubyObject reject(ThreadContext context,
IRubyObject self,
Block block)
collect
public static IRubyObject collect(ThreadContext context,
IRubyObject self,
Block block)
inject
public static IRubyObject inject(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
partition
public static IRubyObject partition(ThreadContext context,
IRubyObject self,
Block block)
each_with_index
public static IRubyObject each_with_index(ThreadContext context,
IRubyObject self,
Block block)
include_p
public static IRubyObject include_p(ThreadContext context,
IRubyObject self,
IRubyObject arg)
max
public static IRubyObject max(ThreadContext context,
IRubyObject self,
Block block)
min
public static IRubyObject min(ThreadContext context,
IRubyObject self,
Block block)
all_p
public static IRubyObject all_p(ThreadContext context,
IRubyObject self,
Block block)
any_p
public static IRubyObject any_p(ThreadContext context,
IRubyObject self,
Block block)
zip
public static IRubyObject zip(ThreadContext context,
IRubyObject self,
IRubyObject[] args,
Block block)
group_by
public static IRubyObject group_by(ThreadContext context,
IRubyObject self,
Block block)
Copyright © 2002-2007 JRuby Team. All Rights Reserved.