Module: CliTemplate::Helper
- Included in:
- Sequence
- Defined in:
- lib/cli_template/helper.rb
Instance Method Summary collapse
- #project_class_name ⇒ Object
-
#underscored_name ⇒ Object
Files should be named with underscores instead of dashes even though project name can contain a dash.
Instance Method Details
#project_class_name ⇒ Object
2 3 4 |
# File 'lib/cli_template/helper.rb', line 2 def project_class_name project_name.underscore.camelize end |
#underscored_name ⇒ Object
Files should be named with underscores instead of dashes even though project name can contain a dash. This is because autoloading works will underscores in the filenames only.
9 10 11 |
# File 'lib/cli_template/helper.rb', line 9 def underscored_name project_name.underscore end |