class Cucumber::Messages::PickleTable
def self.from_h(hash)
def self.from_h(hash) return nil if hash.nil? self.new( rows: hash[:rows]&.map { |item| PickleTableRow.from_h(item) }, ) end
def initialize(
def initialize( rows: [] ) @rows = rows end
def self.from_h(hash) return nil if hash.nil? self.new( rows: hash[:rows]&.map { |item| PickleTableRow.from_h(item) }, ) end
def initialize( rows: [] ) @rows = rows end