class Cucumber::Messages::StepDefinitionPattern

def self.from_h(hash)

def self.from_h(hash)
  return nil if hash.nil?
  self.new(
    source: hash[:source],
    type: hash[:type],
  )
end

def initialize(

def initialize(
  source: '',
  type: StepDefinitionPatternType::CUCUMBER_EXPRESSION
)
  @source = source
  @type = type
end