Class: Cucumber::Messages::Comment
- Defined in:
- lib/cucumber/messages/comment.rb
Overview
Represents the Comment message in Cucumber’s message protocol.
A comment in a Gherkin document
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
The location of the comment.
-
#text ⇒ Object
readonly
The text of the comment.
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new Comment from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, text: '') ⇒ Comment
constructor
A new instance of Comment.
Methods inherited from Message
camelize, from_json, #to_h, #to_json
Constructor Details
Instance Attribute Details
#location ⇒ Object (readonly)
The location of the comment
16 17 18 |
# File 'lib/cucumber/messages/comment.rb', line 16 def location @location end |
#text ⇒ Object (readonly)
The text of the comment
21 22 23 |
# File 'lib/cucumber/messages/comment.rb', line 21 def text @text end |