Class: Cukehead::FeatureFileSection

Inherits:
Object
  • Object
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

#initialize(builder, title) ⇒ FeatureFileSection

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

#finishObject



32
33
34
# File 'lib/cukehead/feature_file_section.rb', line 32

def finish
  raise "Not implemented"
end

#set_tags(tags) ⇒ Object



27
28
29
# File 'lib/cukehead/feature_file_section.rb', line 27

def set_tags(tags)
  @part.tags = tags.clone
end