Class: Gherkin::Formatter::Model::DescribedStatement

Inherits:
BasicStatement show all
Defined in:
lib/gherkin/formatter/model.rb

Direct Known Subclasses

Background, TagStatement

Instance Attribute Summary collapse

Attributes inherited from BasicStatement

#comments, #keyword, #line, #name

Instance Method Summary collapse

Methods inherited from BasicStatement

#first_non_comment_line, #line_range

Methods inherited from Hashable

#to_hash

Constructor Details

#initialize(comments, keyword, name, description, line) ⇒ DescribedStatement


27
28
29
30
# File 'lib/gherkin/formatter/model.rb', line 27

def initialize(comments, keyword, name, description, line)
  super(comments, keyword, name, line)
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description


25
26
27
# File 'lib/gherkin/formatter/model.rb', line 25

def description
  @description
end