class Cucumber::Messages::UndefinedParameterType
Represents the UndefinedParameterType
message in Cucumber’s message protocol.
Attributes
expression[R]
name[R]
Public Class Methods
from_h(hash)
click to toggle source
Returns a new UndefinedParameterType
from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.
Cucumber::Messages::UndefinedParameterType.from_h(some_hash) # => #<Cucumber::Messages::UndefinedParameterType:0x... ...>
# File lib/cucumber/messages/undefined_parameter_type.rb, line 31 def self.from_h(hash) return nil if hash.nil? new( expression: hash[:expression], name: hash[:name] ) end
new( expression: '', name: '' )
click to toggle source
Calls superclass method
# File lib/cucumber/messages/undefined_parameter_type.rb, line 15 def initialize( expression: '', name: '' ) @expression = expression @name = name super() end