Class: FalseClass

Inherits:
Object show all
Defined in:
lib/rmtools/core/boolean.rb

Instance Method Summary collapse

Instance Method Details

#<(obj) ⇒ Object



28
# File 'lib/rmtools/core/boolean.rb', line 28

def < obj; !!obj end

#<=(obj) ⇒ Object



29
# File 'lib/rmtools/core/boolean.rb', line 29

def <= obj; !obj.nil? end

#<=>(obj) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/rmtools/core/boolean.rb', line 20

def <=>(obj)
  case obj
    when nil then 1
    when self then 0
    else -1
  end
end

#>(obj) ⇒ Object



30
# File 'lib/rmtools/core/boolean.rb', line 30

def > obj; obj.nil? end

#>=(obj) ⇒ Object



31
# File 'lib/rmtools/core/boolean.rb', line 31

def >= obj; !obj end

#to_iObject



19
# File 'lib/rmtools/core/boolean.rb', line 19

def to_i; 0; end