Class: Gherkin::Formatter::Model::DescribedStatement
- Inherits:
-
BasicStatement
- Object
- Hashable
- BasicStatement
- Gherkin::Formatter::Model::DescribedStatement
- Defined in:
- lib/gherkin/formatter/model.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Attributes inherited from BasicStatement
#comments, #keyword, #line, #name
Instance Method Summary collapse
-
#initialize(comments, keyword, name, description, line) ⇒ DescribedStatement
constructor
A new instance of DescribedStatement.
Methods inherited from BasicStatement
#first_non_comment_line, #line_range
Methods inherited from Hashable
Constructor Details
#initialize(comments, keyword, name, description, line) ⇒ DescribedStatement
Returns a new instance of 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
#description ⇒ Object (readonly)
Returns the value of attribute description.
25 26 27 |
# File 'lib/gherkin/formatter/model.rb', line 25 def description @description end |