Sha256: 49eb06bd369dc9a9a0d0a927bdb2fd078354adf91ed689968086ec13c381056a
Contents?: true
Size: 582 Bytes
Versions: 4
Compression:
Stored size: 582 Bytes
Contents
# encoding: utf-8 module Inflections ActiveSupport::Inflector.inflections(:es) do |inflect| inflect.clear inflect.plural(/$/, 's') inflect.plural(/([^aeéiou])$/i, '\1es') inflect.plural(/([aeiou]s)$/i, '\1') inflect.plural(/z$/i, 'ces') inflect.plural(/á([sn])$/i, 'a\1es') inflect.plural(/é([sn])$/i, 'e\1es') inflect.plural(/í([sn])$/i, 'i\1es') inflect.plural(/ó([sn])$/i, 'o\1es') inflect.plural(/ú([sn])$/i, 'u\1es') inflect.singular(/s$/, '') inflect.singular(/es$/, '') inflect.irregular('el', 'los') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inflections-4.1.0 | lib/inflections/es.rb |
inflections-4.0.1 | lib/inflections/es.rb |
inflections-4.0.0 | lib/inflections/es.rb |
inflections-4.0.0.beta1 | lib/inflections/es.rb |