public static IRubyObject float_op_le(ThreadContext context, IRubyObject caller, IRubyObject self, double value) throws Throwable { return ((RubyFloat)self).op_le(context, value); }
public static IRubyObject float_op_le(ThreadContext context, IRubyObject caller, IRubyObject self, double value) throws Throwable { return ((RubyFloat)self).op_le(context, value); }
public static IRubyObject float_op_le(ThreadContext context, IRubyObject caller, IRubyObject self, double value) throws Throwable { return ((RubyFloat)self).op_le(context, value); }
public static IRubyObject float_op_le(ThreadContext context, IRubyObject caller, IRubyObject self, double value) throws Throwable { return ((RubyFloat)self).op_le(context, value); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, flote); } return super.call(context, caller, self, flote); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, double flote) { if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, flote); } return super.call(context, caller, self, flote); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, arg); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, arg); } return super.call(context, caller, self, arg); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, arg); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, arg); } return super.call(context, caller, self, arg); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, fixnum); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, fixnum); } return super.call(context, caller, self, fixnum); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, fixnum); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, fixnum); } return super.call(context, caller, self, fixnum); }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, arg); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, arg); } return super.call(context, caller, self, arg); } }
@Override public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject arg) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, arg); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, arg); } return super.call(context, caller, self, arg); } }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, fixnum); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, fixnum); } return super.call(context, caller, self, fixnum); }
public IRubyObject call(ThreadContext context, IRubyObject caller, IRubyObject self, long fixnum) { if (self instanceof RubyFixnum && !context.runtime.isFixnumReopened()) { return ((RubyFixnum) self).op_le(context, fixnum); } else if (self instanceof RubyFloat && !context.runtime.isFloatReopened()) { return ((RubyFloat) self).op_le(context, fixnum); } return super.call(context, caller, self, fixnum); }
/** * Provides processing constrain method as a ruby module method * * @param context ThreadContext * @param recv IRubyObject * @param args array of args must be be numeric * @return original or limit values */ @JRubyMethod(name = "constrain", rest = true, module = true) public static IRubyObject constrainValue(ThreadContext context, IRubyObject recv, IRubyObject[] args) { RubyFloat value = args[0].convertToFloat(); RubyFloat start = args[1].convertToFloat(); RubyFloat stop = args[2].convertToFloat(); if (value.op_ge(context, start).isTrue() && value.op_le(context, stop).isTrue()) { return args[0]; } else if (value.op_ge(context, start).isTrue()) { return args[2]; } else { return args[1]; } }