module Voom::Presenters::Generators::Inflectors
Public Instance Methods
camelize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 20 def camelize(input) # "dry/inflector" => "Dry::Inflector" @inflector.camelize(input) end
classify(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 5 def classify(input) # "books" => "Book" @inflector.classify(input) end
dasherize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 30 def dasherize(input) # "dry_inflector" => "dry-inflector" @inflector.dasherize(input) end
demodulize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 40 def demodulize(input) # "Dry::Inflector" => "Inflector" @inflector.demodulize(input) end
humanize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 45 def humanize(input) # "dry_inflector" => "Dry inflector", "author_id" => "Author" @inflector.humanize(input) end
ordinalize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 50 def ordinalize(input) # 1 => "1st @inflector.ordinalize(input) end
pluralize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 10 def pluralize(input) #book" => "books" @inflector.pluralize(input) end
singularize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 15 def singularize(input) #"books" => "book" @inflector.singularize(input) end
tableize(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 25 def tableize(input) # "Book" => "books" @inflector.tableize(input) end
underscore(input)
click to toggle source
# File lib/voom/presenters/generators/inflectors.rb, line 35 def underscore(input) # "dry-inflector" => "dry_inflector" @inflector.underscore(input) end