Sha256: 290c485790ea53d833fbf990b51249ec155b7ad919652b7cf65fa5b33de5400e

Contents?: true

Size: 287 Bytes

Versions: 15

Compression:

Stored size: 287 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

15 entries across 15 versions & 1 rubygems

Version Path
voom-presenters-0.2.0 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.13 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.12 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.11 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.10 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.9 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.8 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.7 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.6 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.5 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.4 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.3 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.2 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.1 lib/voom/presenters/helpers/inflector.rb
voom-presenters-0.1.0 lib/voom/presenters/helpers/inflector.rb