Method: NilClass#|
- Defined in:
- object.c
#|(obj) ⇒ Boolean #|(obj) ⇒ Boolean
Or—Returns false if obj is nil or false; true otherwise.
1558 1559 1560 1561 1562 |
# File 'object.c', line 1558
static VALUE
false_or(VALUE obj, VALUE obj2)
{
return RTEST(obj2)?Qtrue:Qfalse;
}
|