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/pickle_step_argument.rb, line 33 def self.from_h(hash) return nil if hash.nil? 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/pickle_step_argument.rb, line 17 def initialize( doc_string: nil, data_table: nil ) @doc_string = doc_string @data_table = data_table super() end
Calls superclass method