class Dry::Inflector::Inflections

def rule(rule, replacement, target)

Other tags:
    Api: - private

Other tags:
    Since: - 0.1.0

Parameters:
  • target (Dry::Inflector::Rules) -- the target
  • replacement (String, Regexp) -- the replacement
  • rule (String, Regexp) -- the rule
def rule(rule, replacement, target)
  uncountables.delete(rule)
  uncountables.delete(replacement)
  target.insert(0, [rule, replacement])
end