Sha256: bde19c593ae075b15164b4085571c0c9f2339e83018744d806b9ee1e1ef612e2
Contents?: true
Size: 300 Bytes
Versions: 9
Compression:
Stored size: 300 Bytes
Contents
# frozen_string_literal: true require 'valkey/objects' require 'pry' class Game include VK sortedset :points queue :log def initialize k @id = k end def score p, h={ points: 1 } self.points.poke p, h[:points] end end @game = Hash.new { |h,k| h[k] = Game.new(k) } Pry.start
Version data entries
9 entries across 9 versions & 1 rubygems