Class: Cukehead::FeatureFileSection
- Inherits:
-
Object
- Object
- Cukehead::FeatureFileSection
show all
- Defined in:
- lib/cukehead/feature_file_section.rb
Overview
Base class for a container that holds a part of a Cucumber feature file that will be passed to a FreemindBuilder object once the part has been read.
Instance Method Summary
collapse
Constructor Details
Parameters
builder
- Instance of FreemindBuilder that will receive this section of the file.
title
- String containing the title of the section.
16
17
18
19
|
# File 'lib/cukehead/feature_file_section.rb', line 16
def initialize(builder, title)
@builder = builder
@part = FeaturePart.new title
end
|
Instance Method Details
#add(line) ⇒ Object
22
23
24
|
# File 'lib/cukehead/feature_file_section.rb', line 22
def add(line)
@part.add_line(line)
end
|
#finish ⇒ Object
32
33
34
|
# File 'lib/cukehead/feature_file_section.rb', line 32
def finish
raise "Not implemented"
end
|
27
28
29
|
# File 'lib/cukehead/feature_file_section.rb', line 27
def set_tags(tags)
@part.tags = tags.clone
end
|