Sha256: c699a2228ab218425657943d401ae6fb1f2f3266cf0a943d596de4120e242410

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require 'dry/inflector'

module Gladwords
  Inflector = Dry::Inflector.new do |i|
    # This is part of ROM::Inflector's configuration
    i.plural(/people\z/i, 'people')

    i.plural(/criterion\z/i, 'criteria')
    i.singular(/criteria\z/i, 'criterion')
  end

  # Inflection mixin
  module Inflection
    def inflector
      Gladwords::Inflector
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gladwords-1.0.1 lib/gladwords/inflector.rb