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.



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

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.



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

def comments
  @comments
end

#example_rowsObject (readonly)

Returns the value of attribute example_rows.



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

def example_rows
  @example_rows
end

#headerObject (readonly)

Returns the value of attribute header.



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

def header
  @header
end

#keywordObject (readonly)

Returns the value of attribute keyword.



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

def keyword
  @keyword
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#tagsObject (readonly)

Returns the value of attribute tags.



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

def tags
  @tags
end