Class: FalseClass

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_ext/boolean.rb

Instance Method Summary collapse

Instance Method Details

#and(obj) ⇒ Object



26
27
28
# File 'lib/ruby_ext/boolean.rb', line 26

def and(obj)
  false
end

#notObject



34
35
36
# File 'lib/ruby_ext/boolean.rb', line 34

def not
  true
end

#or(obj) ⇒ Object



30
31
32
# File 'lib/ruby_ext/boolean.rb', line 30

def or(obj)
  obj
end

#ternary(a, b) ⇒ Object



22
23
24
# File 'lib/ruby_ext/boolean.rb', line 22

def ternary(a, b)
  b
end