instance method
TrueClass#&
(false | nil) -> false
(untyped obj) -> bool
true & object → true or false
object.c
View on GitHub ↗
static VALUE
true_and(VALUE obj, VALUE obj2)
{
return RBOOL(RTEST(obj2));
}
Returns false if object is false or nil, true otherwise:
true & Object.new # => true true & false # => false true & nil # => false