Module: Cucumber::Parser::Feature::FeatureSub2
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
Instance Method Details
#build(filter) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/cucumber/parser/feature.rb', line 60 def build(filter) if(filter.nil? || feature_elements.accept?(filter) || (!bg.empty? && filter.accept?(bg))) background = bg.respond_to?(:build) ? bg.build : nil Ast::Feature.new( background, comment.build, .build, header.text_value, feature_elements.build(background, filter) ) end end |