Class: Cucumber::Messages::Comment
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.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 included from Message::Utils
Methods included from Message::Serialization
Methods included from Message::Deserialization
Constructor Details
#initialize(location: Location.new, text: '') ⇒ Comment
Returns a new instance of Comment.
326 327 328 329 330 331 332 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 326 def initialize( location: Location.new, text: '' ) @location = location @text = text end |
Instance Attribute Details
#location ⇒ Object (readonly)
The location of the comment
319 320 321 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 319 def location @location end |
#text ⇒ Object (readonly)
The text of the comment
324 325 326 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 324 def text @text end |
Class Method Details
.from_h(hash) ⇒ Object
146 147 148 149 150 151 152 153 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 146 def self.from_h(hash) return nil if hash.nil? self.new( location: Location.from_h(hash[:location]), text: hash[:text], ) end |