Class: Chili::Feature
- Inherits:
-
Object
- Object
- Chili::Feature
- Defined in:
- lib/chili/feature.rb
Instance Method Summary collapse
-
#initialize(short_name) ⇒ Feature
constructor
A new instance of Feature.
- #name ⇒ Object
- #path ⇒ Object
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
#name ⇒ Object
7 8 9 |
# File 'lib/chili/feature.rb', line 7 def name @short_name.to_s.underscore.gsub('_feature','') + '_feature' end |
#path ⇒ Object
11 12 13 |
# File 'lib/chili/feature.rb', line 11 def path "#{FEATURE_FOLDER}/#{name}" end |