Class: Gherkin::Formatter::Model::TagStatement
- Inherits:
-
DescribedStatement
- Object
- Hashable
- BasicStatement
- DescribedStatement
- Gherkin::Formatter::Model::TagStatement
- Defined in:
- lib/gherkin/formatter/model.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Attributes inherited from DescribedStatement
Attributes inherited from BasicStatement
#comments, #keyword, #line, #name
Instance Method Summary collapse
- #first_non_comment_line ⇒ Object
-
#initialize(comments, tags, keyword, name, description, line) ⇒ TagStatement
constructor
A new instance of TagStatement.
Methods inherited from BasicStatement
Methods inherited from Hashable
Constructor Details
#initialize(comments, tags, keyword, name, description, line) ⇒ TagStatement
Returns a new instance of TagStatement.
36 37 38 39 |
# File 'lib/gherkin/formatter/model.rb', line 36 def initialize(comments, , keyword, name, description, line) super(comments, keyword, name, description, line) @tags = end |
Instance Attribute Details
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
34 35 36 |
# File 'lib/gherkin/formatter/model.rb', line 34 def @tags end |
Instance Method Details
#first_non_comment_line ⇒ Object
41 42 43 |
# File 'lib/gherkin/formatter/model.rb', line 41 def first_non_comment_line @tags.any? ? @tags[0].line : @line end |