class Cucumber::Messages::GherkinDocument
def self.from_h(hash)
def self.from_h(hash) return nil if hash.nil? self.new( uri: hash[:uri], feature: Feature.from_h(hash[:feature]), comments: hash[:comments]&.map { |item| Comment.from_h(item) }, ) end
def initialize(
def initialize( uri: nil, feature: nil, comments: [] ) @uri = uri @feature = feature @comments = comments end