Class: Cukehead::FeatureSection

Inherits:
FeatureFileSection show all
Defined in:
lib/cukehead/feature_file_section.rb

Overview

Serves as a container for the feature description part of a Cucumber feature file while parsing the file.

Instance Method Summary collapse

Methods inherited from FeatureFileSection

#add, #set_tags

Constructor Details

#initialize(builder, text, filename) ⇒ FeatureSection

Returns a new instance of FeatureSection.



44
45
46
47
# File 'lib/cukehead/feature_file_section.rb', line 44

def initialize (builder, text, filename)
  @feature_filename = filename
  super builder, text
end

Instance Method Details

#finishObject



49
50
51
# File 'lib/cukehead/feature_file_section.rb', line 49

def finish
  @builder.add_feature(@part, @feature_filename)
end