Method: Integer#nobits?
- Defined in:
- numeric.c
permalink #nobits?(mask) ⇒ Boolean
Returns true
if no bits of int & mask
are 1.
3313 3314 3315 3316 3317 3318 |
# File 'numeric.c', line 3313
static VALUE
int_nobits_p(VALUE num, VALUE mask)
{
mask = rb_to_int(mask);
return int_zero_p(rb_int_and(num, mask));
}
|