Class: Cucumber::Core::Ast::ScenarioOutline

Inherits:
Object
  • Object
show all
Includes:
DescribesItself, HasLocation, Names
Defined in:
lib/cucumber/core/ast/scenario_outline.rb

Constant Summary collapse

MissingExamples =
Class.new(StandardError)

Instance Attribute Summary collapse

Attributes included from Names

#description, #name

Instance Method Summary collapse

Methods included from DescribesItself

#describe_to

Methods included from HasLocation

#all_locations, #attributes, #file, #file_colon_line, #location, #multiline_arg

Methods included from Names

#inspect, #legacy_conflated_name_and_description, #to_s

Constructor Details

#initialize(location, comments, tags, keyword, name, description, steps, examples) ⇒ ScenarioOutline

Returns a new instance of ScenarioOutline.



19
20
21
22
23
24
25
26
27
28
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 19

def initialize(location, comments, tags, keyword, name, description, steps, examples)
  @location          = location
  @comments          = comments
  @tags              = tags
  @keyword           = keyword
  @name              = name
  @description       = description
  @steps             = steps
  @examples_tables   = examples
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



15
16
17
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 15

def comments
  @comments
end

#examples_tablesObject (readonly)

Returns the value of attribute examples_tables.



15
16
17
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 15

def examples_tables
  @examples_tables
end

#keywordObject (readonly)

Returns the value of attribute keyword.



15
16
17
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 15

def keyword
  @keyword
end

#stepsObject (readonly)

Returns the value of attribute steps.



15
16
17
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 15

def steps
  @steps
end

#tagsObject (readonly)

Returns the value of attribute tags.



15
16
17
# File 'lib/cucumber/core/ast/scenario_outline.rb', line 15

def tags
  @tags
end