Module: Cucumber::Parser::Feature::Examples1

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

Instance Method Summary collapse

Instance Method Details

#at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1166
1167
1168
1169
# File 'lib/cucumber/parser/feature.rb', line 1166

def at_line?(line)
  examples_keyword.line == line ||
  table.at_line?(line)
end

#build(filter, scenario_outline) ⇒ Object



1183
1184
1185
# File 'lib/cucumber/parser/feature.rb', line 1183

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

Returns:

  • (Boolean)


1179
1180
1181
# File 'lib/cucumber/parser/feature.rb', line 1179

def matches_name?(regexp_to_match)
  name.build =~ regexp_to_match
end

#matches_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


1171
1172
1173
# File 'lib/cucumber/parser/feature.rb', line 1171

def matches_tags?(tag_names)
  true
end

#outline_at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1175
1176
1177
# File 'lib/cucumber/parser/feature.rb', line 1175

def outline_at_line?(line)
  true
end