Module: Cucumber::Parser::Feature::ExamplesSections0

Defined in:
lib/cucumber/parser/feature.rb

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1097
1098
1099
# File 'lib/cucumber/parser/feature.rb', line 1097

def at_line?(line)
  elements.detect { |e| e.at_line?(line) }
end

#build(filter, scenario_outline) ⇒ Object



1105
1106
1107
1108
1109
1110
1111
# File 'lib/cucumber/parser/feature.rb', line 1105

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

Returns:

  • (Boolean)


1101
1102
1103
# File 'lib/cucumber/parser/feature.rb', line 1101

def matches_name?(regexp_to_match)
  elements.detect { |e| e.matches_name?(regexp_to_match) }
end