Method: TrueClass#|

Defined in:
lib/source/ruby.rb

#|(object) ⇒ Object

call-seq:

true | obj -> true

Or – returns true. Because obj is an argument to a method call, it is always evaluated; there is no short-circuit evaluation.

true |  a = "A assigned"    #=> true
true || b = "B assigned"    #=> true
[a, b].inspect              #=> ["A assigned", nil]


6780
6781
6782
# File 'lib/source/ruby.rb', line 6780

def |(object)
  `this.valueOf()||$T(object)`
end