class TrueClass

Public Instance Methods

and(obj) click to toggle source
# File lib/ruby_ext/boolean.rb, line 9
def and(obj)
  obj
end
not() click to toggle source
# File lib/ruby_ext/boolean.rb, line 17
def not
  false
end
or(obj) click to toggle source
# File lib/ruby_ext/boolean.rb, line 13
def or(obj)
  true
end
ternary(a, b) click to toggle source
# File lib/ruby_ext/boolean.rb, line 5
def ternary(a, b)
  a
end