Sha256: 9fd8b920feab10c107b530dca942658608a0b93d00badabb367cceb0e7b9a987

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

class ColorTheCircles
  module Model
    class Game
      attr_accessor :score
      
      def initialize
        @score = 0
      end
      
      def restart_game
        @score = 0 # update variable directly to avoid notifying observers
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
color_the_circles-1.0.0 app/color_the_circles/model/game.rb