Sha256: b2839f0b741e42ab42c2e48376a9111e73b1f067c16b8e05459fbdb31bd5a7b6
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
class TrueClass # See String#yes? from the core extensions. Always true here. def yes? ; true ; end alias_method :true?, :yes? # See String#no? from the core extensions. Always false here. def no? ; false ; end alias_method :false?, :no? end class FalseClass # See String#yes? from the core extensions. Always false here. def yes? ; false ; end alias_method :true?, :yes? # See String#no? from the core extensions. Always true here. def no? ; true ; end alias_method :false?, :no? end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.7.0 | lib/core_ext/boolean.rb |