Sha256: c6be7d051dbb56f10cb1909e04c610acb434773a98bd9fef3a355e6e66a4b6ed
Contents?: true
Size: 185 Bytes
Versions: 2
Compression:
Stored size: 185 Bytes
Contents
module PluralTester def singular? self.pluralize.singularize == self end def plural? self.singularize.pluralize == self end end class String include PluralTester end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
context_exposer-0.4.1 | lib/context_exposer/core_ext/string.rb |
context_exposer-0.4.0 | lib/context_exposer/core_ext/string.rb |