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

Version Path
valkey-objects-0.1.9 #class.rb#
valkey-objects-0.1.8 #class.rb#
valkey-objects-0.1.7 #class.rb#
valkey-objects-0.1.6 #class.rb#
valkey-objects-0.1.5 #class.rb#
valkey-objects-0.1.4 #class.rb#
valkey-objects-0.1.3 #class.rb#
valkey-objects-0.1.2 #class.rb#
valkey-objects-0.1.1 #class.rb#