Class: FalseClass

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

Instance Method Summary collapse

Instance Method Details

#&(anObject) ⇒ Object

Returns false



555
556
557
# File 'lib/builtinME.rb', line 555

def &(anObject)
    false
end

#^(anObject) ⇒ Object

If anObject is nil or false, returns false; otherwise, returns true



560
561
562
# File 'lib/builtinME.rb', line 560

def ^(anObject)
    anObject ? true : false
end

#inspectObject



573
574
575
# File 'lib/builtinME.rb', line 573

def inspect
    "false"
end

#to_sObject



569
570
571
# File 'lib/builtinME.rb', line 569

def to_s
    "false"
end

#|(anObject) ⇒ Object

Returns false if anObject is nil or false; true otherwise



565
566
567
# File 'lib/builtinME.rb', line 565

def |(anObject)
    anObject ? true : false
end