Sha256: 5f0e27373b7d1ee59040556ac7e6f5242f1cf626b709c011cc260a66802d7fee

Contents?: true

Size: 394 Bytes

Versions: 36

Compression:

Stored size: 394 Bytes

Contents

class Ufo::CLI::New
  module Concerns
    extend ActiveSupport::Concern

  private
    def class_name
      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 with underscores in the filenames only.
    def underscore_name
      name.underscore
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
ufo-6.3.13 lib/ufo/cli/new/concerns.rb
ufo-6.3.12 lib/ufo/cli/new/concerns.rb
ufo-6.3.11 lib/ufo/cli/new/concerns.rb
ufo-6.3.10 lib/ufo/cli/new/concerns.rb
ufo-6.3.9 lib/ufo/cli/new/concerns.rb
ufo-6.3.8 lib/ufo/cli/new/concerns.rb
ufo-6.3.7 lib/ufo/cli/new/concerns.rb
ufo-6.3.6 lib/ufo/cli/new/concerns.rb
ufo-6.3.5 lib/ufo/cli/new/concerns.rb
ufo-6.3.4 lib/ufo/cli/new/concerns.rb
ufo-6.3.3 lib/ufo/cli/new/concerns.rb
ufo-6.3.2 lib/ufo/cli/new/concerns.rb
ufo-6.3.1 lib/ufo/cli/new/concerns.rb
ufo-6.3.0 lib/ufo/cli/new/concerns.rb
ufo-6.2.5 lib/ufo/cli/new/concerns.rb
ufo-6.2.4 lib/ufo/cli/new/concerns.rb
ufo-6.2.3 lib/ufo/cli/new/concerns.rb
ufo-6.2.2 lib/ufo/cli/new/concerns.rb
ufo-6.2.1 lib/ufo/cli/new/concerns.rb
ufo-6.2.0 lib/ufo/cli/new/concerns.rb