Class: TrueClass

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

Instance Method Summary collapse

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

#inspectObject



651
652
653
# File 'lib/framework/builtinME.rb', line 651

def inspect
    "true"
end

#to_sObject



647
648
649
# File 'lib/framework/builtinME.rb', line 647

def to_s
    "true"
end

#|(anObject) ⇒ Object

Returns true



643
644
645
# File 'lib/framework/builtinME.rb', line 643

def |(anObject)
    true
end