Class: Specific::Command::Feature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_nameObject (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

#specObject (readonly)

Returns the value of attribute spec.



4
5
6
# File 'lib/specific/command/feature.rb', line 4

def spec
  @spec
end

#titleObject (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

#runObject



13
14
15
16
# File 'lib/specific/command/feature.rb', line 13

def run
  mk_group_dir
  write_feature_template
end