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)


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

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

#build(filter, scenario_outline) ⇒ Object



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

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

#has_all_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


1188
1189
1190
# File 'lib/cucumber/parser/feature.rb', line 1188

def has_all_tags?(tag_names)
  true
end

#has_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


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

def has_tags?(tag_names)
  true
end

#matches_name?(regexp_to_match) ⇒ Boolean

Returns:

  • (Boolean)


1196
1197
1198
# File 'lib/cucumber/parser/feature.rb', line 1196

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

#outline_at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


1192
1193
1194
# File 'lib/cucumber/parser/feature.rb', line 1192

def outline_at_line?(line)
  true
end