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
633 634 635 |
# File 'lib/framework/builtinME.rb', line 633 def &(anObject) anObject ? true : false end |
#^(anObject) ⇒ Object
Returns true if anObject is nil or false, false otherwise
638 639 640 |
# File 'lib/framework/builtinME.rb', line 638 def ^(anObject) anObject ? false : true end |
#inspect ⇒ Object
651 652 653 |
# File 'lib/framework/builtinME.rb', line 651 def inspect "true" end |
#|(anObject) ⇒ Object
Returns true
643 644 645 |
# File 'lib/framework/builtinME.rb', line 643 def |(anObject) true end |