Sha256: 526109ef77f0ab9c7864320175588bf6b1707b1f524e579348e54209d1cb498f

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module MM
  class Peg
    attr_accessor :display_value, :row, :col

    def initialize(args)
      @display_value = args.fetch(:display_value, nil)
      @row = args[:row]
      @col = args[:col]
    end

    def change_value(new_value)
      self.display_value = new_value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
games_bfox-0.3.0 lib/games/mastermind/peg.rb
games_bfox-0.2.0 lib/games/mastermind/peg.rb