Module: Cucumber::Parser::Feature::Scenario1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build(background, filter) ⇒ Object
- #has_all_tags?(tag_names) ⇒ Boolean
- #has_tags?(tag_names) ⇒ Boolean
- #matches_name?(regexp_to_match) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
693 694 695 696 697 |
# File 'lib/cucumber/parser/feature.rb', line 693 def at_line?(line) scenario_keyword.line == line || steps.at_line?(line) || .at_line?(line) end |
#build(background, filter) ⇒ Object
713 714 715 716 717 718 719 720 721 722 723 |
# File 'lib/cucumber/parser/feature.rb', line 713 def build(background, filter) Ast::Scenario.new( background, comment.build, .build, scenario_keyword.line, scenario_keyword.text_value, name.build, steps.build ) end |
#has_all_tags?(tag_names) ⇒ Boolean
704 705 706 707 |
# File 'lib/cucumber/parser/feature.rb', line 704 def (tag_names) = self.parent.parent. .(tag_names) || .(tag_names) end |
#has_tags?(tag_names) ⇒ Boolean
699 700 701 702 |
# File 'lib/cucumber/parser/feature.rb', line 699 def (tag_names) = self.parent.parent. .(tag_names) || .(tag_names) end |
#matches_name?(regexp_to_match) ⇒ Boolean
709 710 711 |
# File 'lib/cucumber/parser/feature.rb', line 709 def matches_name?(regexp_to_match) name.build =~ regexp_to_match end |