class Cucumber::Messages::PickleStep
Represents the PickleStep
message in Cucumber’s message protocol.
*
An executable step
Attributes
argument[R]
ast_node_ids[R]
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
id[R]
A unique ID for the PickleStep
text[R]
Public Class Methods
from_h(hash)
click to toggle source
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... ...>
# 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
new( argument: nil, ast_node_ids: [], id: '', text: '' )
click to toggle 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