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

Returns a new instance of DescribedStatement.



42
43
44
45
# File 'lib/gherkin/formatter/model.rb', line 42

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.



40
41
42
# File 'lib/gherkin/formatter/model.rb', line 40

def description
  @description
end