class Cucumber::Messages::ParseError
Represents the ParseError message in Cucumberโs message protocol.
Attributes
Public Class Methods
Source
# File lib/cucumber/messages/parse_error.rb, line 31 def self.from_h(hash) return nil if hash.nil? 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/parse_error.rb, line 15 def initialize( source: SourceReference.new, message: '' ) @source = source @message = message super() end
Calls superclass method