Sha256: 169f09e08277cadf7c7ec6a59a6e19a78a385dc2a07f58913767a23b77bf3c58

Contents?: true

Size: 254 Bytes

Versions: 6

Compression:

Stored size: 254 Bytes

Contents

module Chili
  class Feature
    def initialize(short_name)
      @short_name = short_name
    end

    def name
      @short_name.to_s.underscore.gsub('_feature','') + '_feature'
    end

    def path
      "#{FEATURE_FOLDER}/#{name}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chili-4.0.1 lib/chili/feature.rb
chili-4.0.0 lib/chili/feature.rb
chili-3.1.1 lib/chili/feature.rb
chili-3.1.0 lib/chili/feature.rb
chili-3.0.0 lib/chili/feature.rb
chili-2.0.1 lib/chili/feature.rb