Module: Cucumber::Parser::Feature::Background1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build ⇒ Object
- #has_tags?(tag_names) ⇒ Boolean
- #matches_name?(regexp_to_match) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
488 489 490 491 |
# File 'lib/cucumber/parser/feature.rb', line 488 def at_line?(line) background_keyword.line == line || steps.at_line?(line) end |
#build ⇒ Object
498 499 500 501 502 503 504 505 506 |
# File 'lib/cucumber/parser/feature.rb', line 498 def build Ast::Background.new( comment.build, background_keyword.line, background_keyword.text_value, name.build, steps.build ) end |
#has_tags?(tag_names) ⇒ Boolean
493 494 495 496 |
# File 'lib/cucumber/parser/feature.rb', line 493 def (tag_names) = self.parent. .(tag_names) end |
#matches_name?(regexp_to_match) ⇒ Boolean
484 485 486 |
# File 'lib/cucumber/parser/feature.rb', line 484 def matches_name?(regexp_to_match) name.build =~ regexp_to_match end |