Sha256: 0c412f3b116dd9ab7fcbee33f5e412ac42b1947d643c3634ddcb00b8cba35081
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
require 'unboolean' require 'unboolean/maybe' class TrueClass def &(other) other.is_a?(Unboolean::Maybe) ? other & self : !!(other) end def ^(other) other.is_a?(Unboolean::Maybe) ? other ^ self : (!other).is_a?(TrueClass) end def ==(other) other.is_a?(Unboolean::Maybe) ? other == self : (!!other).is_a?(TrueClass) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unboolean-0.0.2 | lib/unboolean/core_ext/true_class.rb |