|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyNumeric
org.jruby.RubyRational
public class RubyRational
1.9 rational.c as of revision: 20011
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jruby.RubyNumeric |
|---|
RubyNumeric.InvalidIntegerException, RubyNumeric.NumberTooLargeException |
| Nested classes/interfaces inherited from class org.jruby.RubyObject |
|---|
RubyObject.Data |
| Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
|---|
RubyBasicObject.Finalizer |
| Field Summary |
|---|
| Fields inherited from class org.jruby.RubyNumeric |
|---|
DBL_EPSILON, NUMERIC_ALLOCATOR |
| Fields inherited from class org.jruby.RubyObject |
|---|
OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR |
| Fields inherited from class org.jruby.RubyBasicObject |
|---|
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F |
| Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
|---|
NULL_ARRAY |
| Methods inherited from class org.jruby.RubyNumeric |
|---|
abs, abs2, arg, asNumeric, callCoerced, callCoerced, ceil, checkInt, coerce, coerceBin, coerceBody, coerceCmp, coerceRelOp, conjugate, createNumericClass, dbl_cmp, dbl2num, div, div19, divmod, divmod19, doCoerce, eql_p, fdiv, fix2int, fix2int, fix2long, floatStep, floor, getBigIntegerValue, getCoerced, getDoubleValue, getLongValue, image, initialize_copy, int2fix, integer_p, magnitude, modulo, modulo19, newNumeric, nonzero_p, num_imaginary, num2chr, num2dbl, num2fix, num2int, num2long, op_cmp, op_num_equal, op_uminus, op_uplus, polar, quo_19, quo, real, rect, remainder, round, sadded, scalar_p, step, step, str2fnum, str2fnum, str2fnum19, str2inum, str2inum, to_c, to_int, toJava, truncate, zero_p |
| Methods inherited from class org.jruby.RubyObject |
|---|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, equals, getNativeTypeIndex, hashCode, initialize, op_eqq, puts, specificEval, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static RubyClass createRationalClass(Ruby runtime)
@Deprecated
public static IRubyObject newInstanceBang(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
public static IRubyObject newInstanceBang(ThreadContext context,
IRubyObject recv,
IRubyObject num)
public static IRubyObject newInstanceBang(ThreadContext context,
IRubyObject recv,
IRubyObject num,
IRubyObject den)
public static void setCanonicalization(boolean canonical)
@Deprecated
public static IRubyObject newInstance(ThreadContext context,
IRubyObject clazz,
IRubyObject[] args)
public static IRubyObject newInstance(ThreadContext context,
IRubyObject clazz,
IRubyObject num)
public static IRubyObject newInstance(ThreadContext context,
IRubyObject clazz,
IRubyObject num,
IRubyObject den)
public static IRubyObject newRationalConvert(ThreadContext context,
IRubyObject x)
public static IRubyObject newRationalConvert(ThreadContext context,
IRubyObject x,
IRubyObject y)
@Deprecated
public static IRubyObject convert(ThreadContext context,
IRubyObject clazz,
IRubyObject[] args)
public static IRubyObject convert(ThreadContext context,
IRubyObject recv,
IRubyObject a1)
public static IRubyObject convert(ThreadContext context,
IRubyObject recv,
IRubyObject a1,
IRubyObject a2)
public IRubyObject numerator(ThreadContext context)
numerator in class RubyNumericpublic IRubyObject denominator(ThreadContext context)
denominator in class RubyNumeric
public IRubyObject op_add(ThreadContext context,
IRubyObject other)
public IRubyObject op_sub(ThreadContext context,
IRubyObject other)
public IRubyObject op_mul(ThreadContext context,
IRubyObject other)
public IRubyObject op_div(ThreadContext context,
IRubyObject other)
public IRubyObject op_fdiv(ThreadContext context,
IRubyObject other)
public IRubyObject op_expt(ThreadContext context,
IRubyObject other)
public IRubyObject op_cmp(ThreadContext context,
IRubyObject other)
op_cmp in class RubyBasicObject
public IRubyObject op_equal(ThreadContext context,
IRubyObject other)
op_equal in interface IRubyObjectop_equal in class RubyBasicObject
public IRubyObject op_coerce(ThreadContext context,
IRubyObject other)
public IRubyObject op_idiv(ThreadContext context,
IRubyObject other)
public IRubyObject op_idiv19(ThreadContext context,
IRubyObject other)
public IRubyObject op_mod(ThreadContext context,
IRubyObject other)
public IRubyObject op_mod19(ThreadContext context,
IRubyObject other)
public IRubyObject op_divmod(ThreadContext context,
IRubyObject other)
public IRubyObject op_divmod19(ThreadContext context,
IRubyObject other)
public IRubyObject op_rem(ThreadContext context,
IRubyObject other)
public IRubyObject op_abs(ThreadContext context)
public IRubyObject op_floor(ThreadContext context)
public IRubyObject op_floor(ThreadContext context,
IRubyObject n)
public IRubyObject op_ceil(ThreadContext context)
public IRubyObject op_ceil(ThreadContext context,
IRubyObject n)
public IRubyObject op_truncate(ThreadContext context)
public IRubyObject op_truncate(ThreadContext context,
IRubyObject n)
public IRubyObject op_round(ThreadContext context)
public IRubyObject op_round(ThreadContext context,
IRubyObject n)
public IRubyObject to_f(ThreadContext context)
public IRubyObject to_r(ThreadContext context)
public IRubyObject rationalize(ThreadContext context,
IRubyObject[] args)
public IRubyObject hash(ThreadContext context)
public IRubyObject to_s(ThreadContext context)
public IRubyObject inspect(ThreadContext context)
public IRubyObject marshal_dump(ThreadContext context)
public IRubyObject marshal_load(ThreadContext context,
IRubyObject arg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||