class Cucumber::Messages::StepDefinitionPattern
Attributes
Public Class Methods
Source
# File lib/cucumber/messages.deserializers.rb, line 879 def self.from_h(hash) return nil if hash.nil? self.new( source: hash[:source], type: hash[:type], ) end
Returns a new StepDefinitionPattern
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::StepDefinitionPattern.from_h(some_hash) # => #<Cucumber::Messages::StepDefinitionPattern:0x... ...>
Source
# File lib/cucumber/messages.dtos.rb, line 1457 def initialize( source: '', type: StepDefinitionPatternType::CUCUMBER_EXPRESSION ) @source = source @type = type end