Module: Cucumber::Parser::Feature::Examples1
- Defined in:
- lib/cucumber/parser/feature.rb
Instance Method Summary collapse
- #at_line?(line) ⇒ Boolean
- #build(filter, scenario_outline) ⇒ Object
- #matches_name?(regexp_to_match) ⇒ Boolean
- #matches_tags?(tag_names) ⇒ Boolean
- #outline_at_line?(line) ⇒ Boolean
Instance Method Details
#at_line?(line) ⇒ Boolean
1209 1210 1211 1212 |
# File 'lib/cucumber/parser/feature.rb', line 1209 def at_line?(line) examples_keyword.line == line || table.at_line?(line) end |
#build(filter, scenario_outline) ⇒ Object
1226 1227 1228 |
# File 'lib/cucumber/parser/feature.rb', line 1226 def build(filter, scenario_outline) [comment.build, examples_keyword.line, examples_keyword.text_value, name.build, table.raw(filter, scenario_outline)] end |
#matches_name?(regexp_to_match) ⇒ Boolean
1222 1223 1224 |
# File 'lib/cucumber/parser/feature.rb', line 1222 def matches_name?(regexp_to_match) name.build =~ regexp_to_match end |
#matches_tags?(tag_names) ⇒ Boolean
1214 1215 1216 |
# File 'lib/cucumber/parser/feature.rb', line 1214 def (tag_names) true end |
#outline_at_line?(line) ⇒ Boolean
1218 1219 1220 |
# File 'lib/cucumber/parser/feature.rb', line 1218 def outline_at_line?(line) true end |