class Cucumber::Messages::StepMatchArgument
#
This message closely matches the ‘Argument` class in the `cucumber-expressions` library.
- Highlight the matched parameter in rich formatters such as the HTML formatter
- Construct an argument to pass to a step definition (possibly through a parameter type transform)
This is used for the following purposes:
Represents a single argument extracted from a step match and passed to a step definition.
#
Represents the StepMatchArgument message in Cucumber’s message protocol.
#
def self.from_h(hash)
Cucumber::Messages::StepMatchArgument.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new StepMatchArgument from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( group: Group.from_h(hash[:group]), parameter_type_name: hash[:parameterTypeName] ) end
def initialize(
def initialize( group: Group.new, parameter_type_name: nil ) @group = group @parameter_type_name = parameter_type_name super() end