Module: Cucumber::Parser::Feature::ExamplesSections0
- 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
Instance Method Details
#at_line?(line) ⇒ Boolean
1114 1115 1116 |
# File 'lib/cucumber/parser/feature.rb', line 1114 def at_line?(line) elements.detect { |e| e.at_line?(line) } end |
#build(filter, scenario_outline) ⇒ Object
1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/cucumber/parser/feature.rb', line 1122 def build(filter, scenario_outline) elements.map do |e| if(filter.nil? || filter.accept_example?(e, scenario_outline)) e.build(filter, scenario_outline) end end.compact end |
#matches_name?(regexp_to_match) ⇒ Boolean
1118 1119 1120 |
# File 'lib/cucumber/parser/feature.rb', line 1118 def matches_name?(regexp_to_match) elements.detect { |e| e.matches_name?(regexp_to_match) } end |