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)


1156
1157
1158
1159
# File 'lib/cucumber/parser/feature.rb', line 1156

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

#build(filter, scenario_outline) ⇒ Object



1173
1174
1175
# File 'lib/cucumber/parser/feature.rb', line 1173

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

#has_tags?(tag_names) ⇒ Boolean

Returns:

  • (Boolean)


1161
1162
1163
# File 'lib/cucumber/parser/feature.rb', line 1161

def has_tags?(tag_names)
  true
end

#matches_name?(regexp_to_match) ⇒ Boolean

Returns:

  • (Boolean)


1169
1170
1171
# File 'lib/cucumber/parser/feature.rb', line 1169

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

#outline_at_line?(line) ⇒ Boolean

Returns:

  • (Boolean)


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

def outline_at_line?(line)
  true
end