class Cucumber::Messages::StepDefinition

#
#
Represents the StepDefinition message in Cucumber’s message protocol.
#

def self.from_h(hash)

#
Cucumber::Messages::StepDefinition.from_h(some_hash) # => #

corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new StepDefinition from the given hash.
#
def self.from_h(hash)
  return nil if hash.nil?
  new(
    id: hash[:id],
    pattern: StepDefinitionPattern.from_h(hash[:pattern]),
    source_reference: SourceReference.from_h(hash[:sourceReference])
  )
end

def initialize(

def initialize(
  id: '',
  pattern: StepDefinitionPattern.new,
  source_reference: SourceReference.new
)
  @id = id
  @pattern = pattern
  @source_reference = source_reference
  super()
end