- Common ways to obtain RubyBignum
private void myMethod () {RubyBignum r =
RubyRandom.RandomType rubyRandomRandomType;rubyRandomRandomType.getState()
Ruby runtime;String value;new RubyBignum(runtime, new BigInteger(value))
Ruby runtime;RubyBignum.newBignum(runtime, value)
- Smart code suggestions by Codota
}
@Override public IRubyObject nonzero_p(ThreadContext context) { return isZero() ? context.nil : this; }
@Override public IRubyObject nonzero_p(ThreadContext context) { return isZero() ? context.nil : this; }
@Override public IRubyObject zero_p(ThreadContext context) { return context.runtime.newBoolean(isZero()); }
@Override public IRubyObject zero_p(ThreadContext context) { return context.runtime.newBoolean(isZero()); }