class TrueClass
Public Instance Methods
and(obj)
click to toggle source
# File lib/ruby_ext/boolean.rb, line 8 def and(obj) obj end
not()
click to toggle source
# File lib/ruby_ext/boolean.rb, line 16 def not false end
or(obj)
click to toggle source
# File lib/ruby_ext/boolean.rb, line 12 def or(obj) true end
ternary(a, b)
click to toggle source
# File lib/ruby_ext/boolean.rb, line 4 def ternary(a, b) a end