class Cucumber::Messages::PickleStepArgument
Represents the PickleStepArgument
message in Cucumber’s message protocol.
An optional argument
Attributes
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 676 def self.from_h(hash) return nil if hash.nil? self.new( doc_string: PickleDocString.from_h(hash[:docString]), data_table: PickleTable.from_h(hash[:dataTable]), ) end
Returns a new PickleStepArgument
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::PickleStepArgument.from_h(some_hash) # => #<Cucumber::Messages::PickleStepArgument:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 1204 def initialize( doc_string: nil, data_table: nil ) @doc_string = doc_string @data_table = data_table end