struct
Amber::Support::Inflector::SingularRule
- Amber::Support::Inflector::SingularRule
- Struct
- Value
- Object
Overview
A suffix rule: a word that ends in #suffix (in any case), after a
character that #preceding allows, swaps that suffix for
#replacement.
Defined in:
amber/support/inflector.crConstructors
Instance Method Summary
- #applies_to?(word : String) : Bool
-
#apply(word : String) : String
Returns word with its suffix replaced; call it only when
#applies_to?holds. - #preceding : Preceding
- #replacement : String
- #suffix : String
Constructor Detail
Instance Method Detail
Returns word with its suffix replaced; call it only when
#applies_to? holds.