org.jruby
Class RubyComparable

java.lang.Object
  extended by org.jruby.RubyComparable

public class RubyComparable
extends java.lang.Object

Implementation of the Comparable module.


Constructor Summary
RubyComparable()
           
 
Method Summary
static RubyBoolean between_p(ThreadContext context, IRubyObject recv, IRubyObject first, IRubyObject second)
          cmp_between
static IRubyObject cmperr(IRubyObject recv, IRubyObject other)
          rb_cmperr
static int cmpint(ThreadContext context, IRubyObject val, IRubyObject a, IRubyObject b)
          rb_cmpint
static RubyModule createComparable(Ruby runtime)
           
static IRubyObject op_equal(ThreadContext context, IRubyObject recv, IRubyObject other)
          cmp_equal (cmp_eq inlined here)
static RubyBoolean op_ge(ThreadContext context, IRubyObject recv, IRubyObject other)
          cmp_ge
static RubyBoolean op_gt(ThreadContext context, IRubyObject recv, IRubyObject other)
          cmp_gt
static RubyBoolean op_le(ThreadContext context, IRubyObject recv, IRubyObject other)
          cmp_le
static RubyBoolean op_lt(ThreadContext context, IRubyObject recv, IRubyObject other)
          cmp_lt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyComparable

public RubyComparable()
Method Detail

createComparable

public static RubyModule createComparable(Ruby runtime)

cmpint

public static int cmpint(ThreadContext context,
                         IRubyObject val,
                         IRubyObject a,
                         IRubyObject b)
rb_cmpint


cmperr

public static IRubyObject cmperr(IRubyObject recv,
                                 IRubyObject other)
rb_cmperr


op_equal

public static IRubyObject op_equal(ThreadContext context,
                                   IRubyObject recv,
                                   IRubyObject other)
cmp_equal (cmp_eq inlined here)


op_gt

public static RubyBoolean op_gt(ThreadContext context,
                                IRubyObject recv,
                                IRubyObject other)
cmp_gt


op_ge

public static RubyBoolean op_ge(ThreadContext context,
                                IRubyObject recv,
                                IRubyObject other)
cmp_ge


op_lt

public static RubyBoolean op_lt(ThreadContext context,
                                IRubyObject recv,
                                IRubyObject other)
cmp_lt


op_le

public static RubyBoolean op_le(ThreadContext context,
                                IRubyObject recv,
                                IRubyObject other)
cmp_le


between_p

public static RubyBoolean between_p(ThreadContext context,
                                    IRubyObject recv,
                                    IRubyObject first,
                                    IRubyObject second)
cmp_between



Copyright © 2002-2007 JRuby Team. All Rights Reserved.