Module: Cucumber::Parser::Feature::ScenarioOutline1

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

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


803
804
805
806
807
# File 'lib/cucumber/parser/feature.rb', line 803

def at_line?(line)
  outline_at_line?(line) ||
  examples_sections.at_line?(line) ||
  tags.at_line?(line)
end

#build(background, filter) ⇒ Object



823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/cucumber/parser/feature.rb', line 823

def build(background, filter)
  Ast::ScenarioOutline.new(
    background,
    comment.build, 
    tags.build,
    scenario_outline_keyword.line, 
    scenario_outline_keyword.text_value, 
    name.text_value, 
    steps.build, 
    examples_sections.build(filter, self)
  )
end

#has_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


814
815
816
817
# File 'lib/cucumber/parser/feature.rb', line 814

def has_tags?(tag_names)
  feature_tags = self.parent.parent.tags
  tags.has_tags?(tag_names) || feature_tags.has_tags?(tag_names)
end

#matches_name?(name_to_match) ⇒ Boolean

Returns:

  • (Boolean)


819
820
821
# File 'lib/cucumber/parser/feature.rb', line 819

def matches_name?(name_to_match)
  name.text_value == name_to_match
end

#outline_at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


809
810
811
812
# File 'lib/cucumber/parser/feature.rb', line 809

def outline_at_line?(line)
  scenario_outline_keyword.line == line ||
  steps.at_line?(line)
end