Class: Specific::Command::Feature
- Inherits:
-
Object
- Object
- Specific::Command::Feature
- Defined in:
- lib/specific/command/feature.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#group_name ⇒ Object
readonly
Returns the value of attribute group_name.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(spec, group_name, file_name, title) ⇒ Feature
constructor
A new instance of Feature.
- #run ⇒ Object
Constructor Details
#initialize(spec, group_name, file_name, title) ⇒ Feature
Returns a new instance of Feature.
6 7 8 9 10 11 |
# File 'lib/specific/command/feature.rb', line 6 def initialize(spec, group_name, file_name, title) @spec = spec @group_name = group_name @file_name = file_name @title = title end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
4 5 6 |
# File 'lib/specific/command/feature.rb', line 4 def file_name @file_name end |
#group_name ⇒ Object (readonly)
Returns the value of attribute group_name.
4 5 6 |
# File 'lib/specific/command/feature.rb', line 4 def group_name @group_name end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
4 5 6 |
# File 'lib/specific/command/feature.rb', line 4 def spec @spec end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/specific/command/feature.rb', line 4 def title @title end |
Instance Method Details
#run ⇒ Object
13 14 15 16 |
# File 'lib/specific/command/feature.rb', line 13 def run mk_group_dir write_feature_template end |