class TrueClass
Public Instance Methods
&(p1)
click to toggle source
static VALUE rb_hack_and (VALUE x, VALUE y) { if ( rb_obj_is_carray(y) ) { if ( rb_ca_is_boolean_type(y) ) { return rb_funcall(y, id_bit_and, 1, x); } else { #if RUBY_VERSION_CODE >= 190 return rb_num_coerce_bin(x, y, '&'); #else return rb_num_coerce_bin(x, y); #endif } } else { return rb_funcall(x, id___and__, 1, y); } }
Also aliased as: __and__
^(p1)
click to toggle source
static VALUE rb_hack_xor (VALUE x, VALUE y) { if ( rb_obj_is_carray(y) ) { if ( rb_ca_is_boolean_type(y) ) { return rb_funcall(y, id_bit_xor, 1, x); } else { #if RUBY_VERSION_CODE >= 190 return rb_num_coerce_bin(x, y, '^'); #else return rb_num_coerce_bin(x, y); #endif } } else { return rb_funcall(x, id___xor__, 1, y); } }
Also aliased as: __xor__
|(p1)
click to toggle source
static VALUE rb_hack_or(VALUE x, VALUE y) { if ( rb_obj_is_carray(y) ) { if ( rb_ca_is_boolean_type(y) ) { return rb_funcall(y, id_bit_or, 1, x); } else { #if RUBY_VERSION_CODE >= 190 return rb_num_coerce_bin(x, y, '|'); #else return rb_num_coerce_bin(x, y); #endif } } else { return rb_funcall(x, id___or__, 1, y); } }
Also aliased as: __or__