Class: Chili::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/chili/feature.rb

Instance Method Summary collapse

Constructor Details

#initialize(short_name) ⇒ Feature

Returns a new instance of Feature.



3
4
5
# File 'lib/chili/feature.rb', line 3

def initialize(short_name)
  @short_name = short_name
end

Instance Method Details

#nameObject



7
8
9
# File 'lib/chili/feature.rb', line 7

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

#pathObject



11
12
13
# File 'lib/chili/feature.rb', line 11

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