Class: Cukehead::FeatureSection
- Inherits:
-
FeatureFileSection
- Object
- FeatureFileSection
- Cukehead::FeatureSection
- 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
- #finish ⇒ Object
-
#initialize(builder, text, filename) ⇒ FeatureSection
constructor
A new instance of FeatureSection.
Methods inherited from FeatureFileSection
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
#finish ⇒ Object
49 50 51 |
# File 'lib/cukehead/feature_file_section.rb', line 49 def finish @builder.add_feature(@part, @feature_filename) end |