class Cucumber::Messages::ParseError
#
#
Represents the ParseError message in Cucumber’s message protocol.
#
def self.from_h(hash)
Cucumber::Messages::ParseError.from_h(some_hash) # => #
corresponding snake_cased attributes.
If the hash keys are camelCased, they are properly assigned to the
Returns a new ParseError from the given hash.
#
def self.from_h(hash) return nil if hash.nil? new( source: SourceReference.from_h(hash[:source]), message: hash[:message] ) end
def initialize(
def initialize( source: SourceReference.new, message: '' ) @source = source @message = message super() end