Class: FeatureRelease::Feature
- Inherits:
-
Object
- Object
- FeatureRelease::Feature
- Defined in:
- lib/feature_release/feature.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
Returns the value of attribute groups.
Instance Method Summary collapse
- #add_group(group) ⇒ Object
-
#initialize(name) ⇒ Feature
constructor
A new instance of Feature.
- #remove_group(group) ⇒ Object
Constructor Details
#initialize(name) ⇒ Feature
7 8 9 10 |
# File 'lib/feature_release/feature.rb', line 7 def initialize(name) @name = name @groups = [] end |
Instance Attribute Details
#groups ⇒ Object
Returns the value of attribute groups.
5 6 7 |
# File 'lib/feature_release/feature.rb', line 5 def groups @groups end |
Instance Method Details
#add_group(group) ⇒ Object
12 13 14 |
# File 'lib/feature_release/feature.rb', line 12 def add_group(group) @groups << group.to_sym end |
#remove_group(group) ⇒ Object
16 17 18 |
# File 'lib/feature_release/feature.rb', line 16 def remove_group(group) @groups.delete(group.to_sym) end |