Class: Cucumber::Messages::Comment
- Defined in:
- lib/cucumber/messages/comment.rb
Overview
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
17 18 19 |
# File 'lib/cucumber/messages/comment.rb', line 17 def location @location end |
#text ⇒ Object (readonly)
The text of the comment
22 23 24 |
# File 'lib/cucumber/messages/comment.rb', line 22 def text @text end |