Class: Cucumber::Messages::Tag
- Defined in:
- lib/cucumber/messages/tag.rb
Overview
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Unique ID to be able to reference the Tag from PickleTag.
-
#location ⇒ Object
readonly
Location of the tag.
-
#name ⇒ Object
readonly
The name of the tag (including the leading ‘@`).
Class Method Summary collapse
-
.from_h(hash) ⇒ Object
Returns a new Tag from the given hash.
Instance Method Summary collapse
-
#initialize(location: Location.new, name: '', id: '') ⇒ Tag
constructor
A new instance of Tag.
Methods inherited from Message
camelize, from_json, #to_h, #to_json
Constructor Details
Instance Attribute Details
#id ⇒ Object (readonly)
Unique ID to be able to reference the Tag from PickleTag
27 28 29 |
# File 'lib/cucumber/messages/tag.rb', line 27 def id @id end |
#location ⇒ Object (readonly)
Location of the tag
17 18 19 |
# File 'lib/cucumber/messages/tag.rb', line 17 def location @location end |
#name ⇒ Object (readonly)
The name of the tag (including the leading ‘@`)
22 23 24 |
# File 'lib/cucumber/messages/tag.rb', line 22 def name @name end |