Class: Cucumber::Core::Ast::ExamplesTable

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

Direct Known Subclasses

Examples

Defined Under Namespace

Classes: Header, Row

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, #line, #multiline_arg

Methods included from Names

#inspect, #legacy_conflated_name_and_description, #to_s

Constructor Details

#initialize(location, comments, tags, keyword, name, description, header, example_rows) ⇒ ExamplesTable

Returns a new instance of ExamplesTable.



14
15
16
17
18
19
20
21
22
23
# File 'lib/cucumber/core/ast/examples_table.rb', line 14

def initialize(location, comments, tags, keyword, name, description, header, example_rows)
  @location = location
  @comments = comments
  @tags = tags
  @keyword = keyword
  @name = name
  @description = description
  @header = header
  @example_rows = example_rows
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def comments
  @comments
end

#example_rowsObject (readonly)

Returns the value of attribute example_rows.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def example_rows
  @example_rows
end

#headerObject (readonly)

Returns the value of attribute header.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def header
  @header
end

#keywordObject (readonly)

Returns the value of attribute keyword.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def keyword
  @keyword
end

#locationObject (readonly)

Returns the value of attribute location.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def location
  @location
end

#tagsObject (readonly)

Returns the value of attribute tags.



25
26
27
# File 'lib/cucumber/core/ast/examples_table.rb', line 25

def tags
  @tags
end