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)


1199
1200
1201
1202
# File 'lib/cucumber/parser/feature.rb', line 1199

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

#build(filter, scenario_outline) ⇒ Object



1220
1221
1222
# File 'lib/cucumber/parser/feature.rb', line 1220

def build(filter, scenario_outline)
  [comment.build, examples_keyword.line, examples_keyword.text_value, name.build, table.raw(filter, scenario_outline)]
end

#has_all_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


1208
1209
1210
# File 'lib/cucumber/parser/feature.rb', line 1208

def has_all_tags?(tag_names)
  true
end

#has_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


1204
1205
1206
# File 'lib/cucumber/parser/feature.rb', line 1204

def has_tags?(tag_names)
  true
end

#matches_name?(regexp_to_match) ⇒ Boolean

Returns:

  • (Boolean)


1216
1217
1218
# File 'lib/cucumber/parser/feature.rb', line 1216

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

#outline_at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1212
1213
1214
# File 'lib/cucumber/parser/feature.rb', line 1212

def outline_at_line?(line)
  true
end