Module: Dry::Web::Roda::Generators::Inflections

Defined in:
lib/dry/web/roda/generators/inflections.rb

Class Method Summary collapse

Class Method Details

.camel_cased_name(name) ⇒ Object



14
15
16
# File 'lib/dry/web/roda/generators/inflections.rb', line 14

def camel_cased_name(name)
  Inflector.camelize(underscored_name(name))
end

.underscored_name(name) ⇒ Object



10
11
12
# File 'lib/dry/web/roda/generators/inflections.rb', line 10

def underscored_name(name)
  Inflector.underscore(name)
end