End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
TrueClass#&
true & obj → true or false
object.c
View on GitHub ↗
static VALUE
true_and(VALUE obj, VALUE obj2)
{
return RTEST(obj2)?Qtrue:Qfalse;
}
And—Returns false if obj is nil or false, true otherwise.