|(p1)
public
Or—Returns true. As anObject is an
argument to a method call, it is always evaluated; there is no
short-circuit evaluation in this case.
true | puts("or")
true || puts("logical or")
produces:
or
Show source
/*
* call-seq:
* true | obj => true
*
* Or---Returns <code>true</code>. As <i>anObject</i> is an argument to
* a method call, it is always evaluated; there is no short-circuit
* evaluation in this case.
*
* true | puts("or")
* true || puts("logical or")
*
* <em>produces:</em>
*
* or
*/
static VALUE
true_or(obj, obj2)
VALUE obj, obj2;
{
return Qtrue;
}