Module: Cucumber::Parser::Feature::FeatureSub2

Defined in:
lib/cucumber/parser/feature.rb

Instance Method Summary collapse

Instance Method Details

#build(filter) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/cucumber/parser/feature.rb', line 66

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, 
      tags.build, 
      header.text_value, 
      feature_elements.build(background, filter)
    )
  end
end

#has_all_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/cucumber/parser/feature.rb', line 62

def has_all_tags?(tag_names)
  tags.has_all_tags?(tag_names)
end

#has_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/cucumber/parser/feature.rb', line 58

def has_tags?(tag_names)
  tags.has_tags?(tag_names)
end