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