Module: Cucumber::Parser::Feature::Background1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build ⇒ 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
492 493 494 495 |
# File 'lib/cucumber/parser/feature.rb', line 492 def at_line?(line) background_keyword.line == line || steps.at_line?(line) end |
#build ⇒ Object
507 508 509 510 511 512 513 514 515 |
# File 'lib/cucumber/parser/feature.rb', line 507 def build Ast::Background.new( comment.build, background_keyword.line, background_keyword.text_value, name.build, steps.build ) end |
#has_all_tags?(tag_names) ⇒ Boolean
502 503 504 505 |
# File 'lib/cucumber/parser/feature.rb', line 502 def (tag_names) = self.parent. .(tag_names) end |
#has_tags?(tag_names) ⇒ Boolean
497 498 499 500 |
# File 'lib/cucumber/parser/feature.rb', line 497 def (tag_names) = self.parent. .(tag_names) end |
#matches_name?(regexp_to_match) ⇒ Boolean
488 489 490 |
# File 'lib/cucumber/parser/feature.rb', line 488 def matches_name?(regexp_to_match) name.build =~ regexp_to_match end |