Class: TrueClass

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

Instance Method Summary collapse

Instance Method Details

#and(obj) ⇒ Object



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

def and(obj)
  obj
end

#notObject



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

def not
  false
end

#or(obj) ⇒ Object



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

def or(obj)
  true
end

#ternary(a, b) ⇒ Object



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

def ternary(a, b)
  a
end