class TrueClass

Public Instance Methods

&(other) click to toggle source
# File lib/unboolean/core_ext/true_class.rb, line 5
def &(other)
  other.is_a?(Unboolean::Maybe) ? other & self : !!(other)
end
==(other) click to toggle source
# File lib/unboolean/core_ext/true_class.rb, line 13
def ==(other)
  other.is_a?(Unboolean::Maybe) ? other == self : (!!other).is_a?(TrueClass)
end
^(other) click to toggle source
# File lib/unboolean/core_ext/true_class.rb, line 9
def ^(other)
  other.is_a?(Unboolean::Maybe) ? other ^ self : (!other).is_a?(TrueClass)
end