| Modifier and Type | Field and Description |
|---|---|
| private static boolean | canonicalization
nurat_canonicalization |
| private RubyInteger | |
| private static final long | |
| private RubyInteger | |
| private static final ObjectMarshal |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BigInteger | asBigInteger(ThreadContext
the current thread context context)Overrides org. Return a BigInteger representation of this numerical value |
| public double | asDouble(ThreadContext
the current thread context context)Overrides org. Return a double representation of this numerical value |
| public long | asLong(ThreadContext context)
Overrides org. Return the value of this numeric as a 64-bit long. |
| private static RubyNumeric | canonicalizeInternal(ThreadContext context, RubyClass clazz, RubyInteger num, RubyInteger den)
nurat_s_canonicalize_internal |
| private static RubyNumeric | |
| private static RubyNumeric | canonicalizeInternalNoReduce(ThreadContext context, RubyClass clazz, RubyInteger num, RubyInteger den)
nurat_s_canonicalize_internal_no_reduce |
| private static boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | convert(ThreadContext context, IRubyObject recv, IRubyObject a1, IRubyObject a2, IRubyObject kwargs)
nurat_s_convert |
| private static IRubyObject | convertCommon(ThreadContext context, RubyClass clazz, IRubyObject a1, IRubyObject a2, boolean raise)
|
| public RubyInteger | convertToInteger()
Overrides org. Implements org. Tries to convert this object to a Ruby Integer using the "to_int" method. |
| public RubyRational | |
| public static RubyClass | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | |
| private static RubyNumeric | f_addsub(ThreadContext context, RubyClass metaClass, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean plus)
f_addsub |
| private static RubyInteger | |
| private static RubyNumeric | f_muldiv(ThreadContext context, RubyClass clazz, RubyInteger anum, RubyInteger aden, RubyInteger bnum, RubyInteger bden, final boolean mult)
f_muldiv |
| public IRubyObject | |
| private RubyNumeric | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyInteger | |
| public double | getDoubleValue(ThreadContext context)
Deprecated
since 10.0. USe
org. instead.
|
| public ClassIndex | getNativeClassIndex()
Overrides org. Implements org. This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
| public RubyInteger | |
| public RubyFixnum | hash(ThreadContext
the current thread context context)Overrides org. nurat_hash |
| public int | hashCode()
Overrides org. This override does not do "checked" dispatch since Object usually has #hash defined. |
| public IRubyObject | idiv(ThreadContext context, IRubyObject other)
Overrides org. MRI: rb_int_idiv and overrides |
| public RubyString | inspect(ThreadContext context)
Overrides org. Overrides default org. nurat_inspect |
| private static RubyInteger | |
| private static CallSite | |
| pack-priv static IRubyObject | |
| public IRubyObject | |
| public boolean | |
| public IRubyObject | |
| public boolean | |
| public final boolean | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private IRubyObject | |
| private RubyInteger | |
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | |
| public static IRubyObject | |
| pack-priv static IRubyObject | |
| pack-priv static IRubyObject | newInstance(ThreadContext context, RubyClass clazz, IRubyObject num, IRubyObject den, boolean raise)
|
| pack-priv static RubyNumeric | |
| public static RubyNumeric | |
| public static RubyNumeric | |
| public static RubyRational | |
| pack-priv static RubyRational | |
| private static RubyRational | newRationalBang(ThreadContext context, RubyClass clazz, IRubyObject x, IRubyObject y)
f_rational_new_bang2 |
| private static RubyRational | |
| private static RubyRational | |
| pack-priv static RubyNumeric | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| pack-priv static RubyNumeric | |
| private static RubyNumeric | newRationalNoReduce(ThreadContext context, RubyClass clazz, RubyInteger x, RubyInteger y)
f_rational_new_no_reduce2 |
| public static RubyRational | |
| pack-priv static RubyRational | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final RubyNumeric | |
| public IRubyObject | |
| public IRubyObject | op_equal(ThreadContext context, IRubyObject other)
Overrides org. Implements org. nurat_equal_p |
| public final IRubyObject | |
| pack-priv final RubyBoolean | |
| public IRubyObject | |
| public final IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | op_minus(ThreadContext context, IRubyObject other)
Overrides org. nurat_sub |
| public final RubyNumeric | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public final RubyNumeric | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private static IRubyObject | |
| public static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private RubyInteger | |
| private RubyInteger | |
| private RubyInteger | |
| public static void | |
| public final int | |
| public final int | |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| pack-priv static IRubyObject[] | |
| private static IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyString | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject |