Ptico / flexus

[discontinued] now dry-inflector
MIT License
2 stars 1 forks source link

Resolves issue #19 - no mutating global state #20

Closed abinoam closed 7 years ago

abinoam commented 7 years ago

A work in progress. Don't merge yet!

Resolves #19

Now it is possible to do this:

inflector = Flexus.new

inflector.inflections do |inflect|
  inflect.plural(/\z/, 'zishes')
end

inflector.pluralize("dog") #=> "dogzishes"
Flexus.pluralize("dog") #=> "dogs"
abinoam commented 7 years ago

@Ptico, I'm merging this as it's backward compatible. Let us let the house clean before we go!