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