Class: FalseClass

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

Instance Method Summary collapse

Instance Method Details

#and(obj) ⇒ Object



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

def and(obj)
  false
end

#notObject



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

def not
  true
end

#or(obj) ⇒ Object



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

def or(obj)
  obj
end

#ternary(a, b) ⇒ Object



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

def ternary(a, b)
  b
end