|

true | obj Ă¢ true
Instance Public methods

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
doc_ruby_on_rails
2015-06-09 19:48:00
Comments
Leave a Comment

Please login to continue.