Class: TrueClass

Inherits:
Object show all
Defined in:
lib/builtinME.rb

Instance Method Summary collapse

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

#inspectObject



547
548
549
# File 'lib/builtinME.rb', line 547

def inspect
    "true"
end

#to_sObject



543
544
545
# File 'lib/builtinME.rb', line 543

def to_s
    "true"
end

#|(anObject) ⇒ Object

Returns true



539
540
541
# File 'lib/builtinME.rb', line 539

def |(anObject)
    true
end