/** flo_ge * */ @JRubyMethod(name = ">=", required = 1) public IRubyObject op_ge(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value >= b); default: return coerceRelOp(context, ">=", other); } }
/** flo_lt * */ @JRubyMethod(name = "<", required = 1) public IRubyObject op_lt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value < b); default: return coerceRelOp(context, "<", other); } }
/** flo_lt * */ @JRubyMethod(name = "<", required = 1) public IRubyObject op_lt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value < b); default: return coerceRelOp(context, "<", other); } }
/** flo_le * */ @JRubyMethod(name = "<=", required = 1) public IRubyObject op_le(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value <= b); default: return coerceRelOp(context, "<=", other); } }
/** flo_gt * */ @JRubyMethod(name = ">", required = 1) public IRubyObject op_gt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value > b); default: return coerceRelOp(context, ">", other); } }
/** flo_le * */ @JRubyMethod(name = "<=", required = 1) public IRubyObject op_le(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value <= b); default: return coerceRelOp(context, "<=", other); } }
/** flo_ge * */ @JRubyMethod(name = ">=", required = 1) public IRubyObject op_ge(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value >= b); default: return coerceRelOp(context, ">=", other); } }
/** flo_gt * */ @JRubyMethod(name = ">", required = 1) public IRubyObject op_gt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().index) { case ClassIndex.FIXNUM: case ClassIndex.BIGNUM: case ClassIndex.FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(getRuntime(), !Double.isNaN(b) && value > b); default: return coerceRelOp(context, ">", other); } }
/** flo_gt * */ @JRubyMethod(name = ">", required = 1) public IRubyObject op_gt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value > b); default: return coerceRelOp(context, sites(context).op_gt, other); } }
/** flo_lt * */ @JRubyMethod(name = "<", required = 1) public IRubyObject op_lt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value < b); default: return coerceRelOp(context, sites(context).op_lt, other); } }
/** flo_ge * */ @JRubyMethod(name = ">=", required = 1) public IRubyObject op_ge(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value >= b); default: return coerceRelOp(context, sites(context).op_ge, other); } }
/** flo_gt * */ @JRubyMethod(name = ">", required = 1) public IRubyObject op_gt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value > b); default: return coerceRelOp(context, sites(context).op_gt, other); } }
/** flo_le * */ @JRubyMethod(name = "<=", required = 1) public IRubyObject op_le(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value <= b); default: return coerceRelOp(context, sites(context).op_le, other); } }
/** flo_le * */ @JRubyMethod(name = "<=", required = 1) public IRubyObject op_le(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value <= b); default: return coerceRelOp(context, sites(context).op_le, other); } }
/** flo_lt * */ @JRubyMethod(name = "<", required = 1) public IRubyObject op_lt(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value < b); default: return coerceRelOp(context, sites(context).op_lt, other); } }
/** flo_ge * */ @JRubyMethod(name = ">=", required = 1) public IRubyObject op_ge(ThreadContext context, IRubyObject other) { switch (other.getMetaClass().getClassIndex()) { case INTEGER: case FLOAT: double b = ((RubyNumeric) other).getDoubleValue(); return RubyBoolean.newBoolean(context.runtime, !Double.isNaN(b) && value >= b); default: return coerceRelOp(context, sites(context).op_ge, other); } }