Class: TrueClass
Instance Method Summary collapse
-
#&(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise.
-
#^(anObject) ⇒ Object
Returns true if anObject is nil or false, false otherwise.
- #inspect ⇒ Object
- #to_s ⇒ Object
-
#|(anObject) ⇒ Object
Returns true.
Instance Method Details
#&(anObject) ⇒ Object
Returns false if anObject is nil or false, true otherwise
529 530 531 |
# File 'lib/builtinME.rb', line 529 def &(anObject) anObject ? true : false end |
#^(anObject) ⇒ Object
Returns true if anObject is nil or false, false otherwise
534 535 536 |
# File 'lib/builtinME.rb', line 534 def ^(anObject) anObject ? false : true end |
#inspect ⇒ Object
547 548 549 |
# File 'lib/builtinME.rb', line 547 def inspect "true" end |
#|(anObject) ⇒ Object
Returns true
539 540 541 |
# File 'lib/builtinME.rb', line 539 def |(anObject) true end |