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)


1077
1078
1079
# File 'lib/cucumber/parser/feature.rb', line 1077

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

#build(filter, scenario_outline) ⇒ Object



1081
1082
1083
1084
1085
1086
1087
# File 'lib/cucumber/parser/feature.rb', line 1081

def build(filter, scenario_outline)
  elements.map do |e|
    if(filter.nil? || filter.accept?(e) || filter.outline_at_line?(scenario_outline))
      e.build(filter, scenario_outline)
    end
  end.compact
end