Sha256: a0a6fe2a520cbe520f0095b14890999eb9bd4fcb7cd1a3466dc60ba5372f5518

Contents?: true

Size: 423 Bytes

Versions: 7

Compression:

Stored size: 423 Bytes

Contents

module CliTemplate::Helper
  def project_class_name
    project_name.underscore.camelize
  end

  # 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.
  def underscored_name
    project_name.underscore
  end

  # project_name is also available from new.rb:
  #   argument :project_name
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cli-template-4.0.2 lib/cli_template/helper.rb
cli-template-4.0.1 lib/cli_template/helper.rb
cli-template-4.0.0 lib/cli_template/helper.rb
cli-template-3.5.1 lib/cli-template/helper.rb
cli-template-3.5.0 lib/cli-template/helper.rb
cli-template-3.4.0 lib/cli-template/helper.rb
cli-template-3.3.0 lib/cli-template/helper.rb