class Cucumber::Messages::ParseError
Represents the ParseError
message in Cucumber’s message protocol.
Attributes
message[R]
source[R]
Public Class Methods
from_h(hash)
click to toggle source
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... ...>
# 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
new( source: SourceReference.new, message: '' )
click to toggle source
Calls superclass method
# File lib/cucumber/messages/parse_error.rb, line 15 def initialize( source: SourceReference.new, message: '' ) @source = source @message = message super() end