class Cucumber::Messages::PickleStep
Represents the PickleStep
message in Cucumber’s message protocol.
*
An executable step
Attributes
References the IDs of the source of the step. For Gherkin, this can be
the ID of a Step, and possibly also the ID of a TableRow
A unique ID for the PickleStep
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 654 def self.from_h(hash) return nil if hash.nil? self.new( argument: PickleStepArgument.from_h(hash[:argument]), ast_node_ids: hash[:astNodeIds], id: hash[:id], text: hash[:text], ) end
Returns a new PickleStep
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::PickleStep.from_h(some_hash) # => #<Cucumber::Messages::PickleStep:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 1178 def initialize( argument: nil, ast_node_ids: [], id: '', text: '' ) @argument = argument @ast_node_ids = ast_node_ids @id = id @text = text end