Class: TrueClass

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

Instance Method Summary collapse

Instance Method Details

#and(obj) ⇒ Object



9
10
11
# File 'lib/ruby_ext/boolean.rb', line 9

def and(obj)
  obj
end

#notObject



17
18
19
# File 'lib/ruby_ext/boolean.rb', line 17

def not
  false
end

#or(obj) ⇒ Object



13
14
15
# File 'lib/ruby_ext/boolean.rb', line 13

def or(obj)
  true
end

#ternary(a, b) ⇒ Object



5
6
7
# File 'lib/ruby_ext/boolean.rb', line 5

def ternary(a, b)
  a
end