Sha256: b15cfbbf261819d419232d73568d592080b57db4c59a231efbcecaa3bc83e0c3

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

module Voom
  module Presenters
    module Helpers
      module Inflector
        def inflector
          @_inflector_ ||= Dry::Inflector.new
        end

        def humanize(text)
          inflector.humanize(text)
        end
        alias titleize humanize
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/helpers/inflector.rb
voom-presenters-2.1.0 lib/voom/presenters/helpers/inflector.rb
voom-presenters-2.0.3 lib/voom/presenters/helpers/inflector.rb
voom-presenters-2.0.2 lib/voom/presenters/helpers/inflector.rb
voom-presenters-2.0.1 lib/voom/presenters/helpers/inflector.rb
voom-presenters-2.0.0 lib/voom/presenters/helpers/inflector.rb