class Cucumber::Messages::ParseError

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.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
new( source: SourceReference.new, message: '' ) click to toggle source
# File lib/cucumber/messages.dtos.rb, line 1039
def initialize(
  source: SourceReference.new,
  message: ''
)
  @source = source
  @message = message
end