module Alba::DefaultInflector
This module represents the inflector, which is used by default
Public Instance Methods
camelize(key)
click to toggle source
Camelizes a key
@param key [String] key to be camelized @return [String] camelized key
# File lib/alba/default_inflector.rb, line 16 def camelize(key) ActiveSupport::Inflector.camelize(key) end
camelize_lower(key)
click to toggle source
Camelizes a key, 1st letter lowercase
@param key [String] key to be camelized @return [String] camelized key
# File lib/alba/default_inflector.rb, line 24 def camelize_lower(key) ActiveSupport::Inflector.camelize(key, false) end
dasherize(key)
click to toggle source
Dasherizes a key
@param key [String] key to be dasherized @return [String] dasherized key
# File lib/alba/default_inflector.rb, line 32 def dasherize(key) ActiveSupport::Inflector.dasherize(key) end