Sha256: c5202976635acd1d15f0b4c6e04201a7d2f173b9bac02ef0693180e52bfde146
Contents?: true
Size: 508 Bytes
Versions: 10
Compression:
Stored size: 508 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module String #:nodoc: module Inflections #:nodoc: REVERSALS = { "asc" => "desc", "ascending" => "descending", "desc" => "asc", "descending" => "ascending" } def invert REVERSALS[self] end def singular? singularize == self end def plural? pluralize == self end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems