Sha256: 472934017da368542845e20a7164e97634bd24533a07fffbce2ea8eacb3e1d5d

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

module MM
  class Peg
    attr_accessor :display_value

    def initialize(args = {})
      @display_value = args.fetch(:display_value, nil)
    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.6.0 lib/games/mastermind/peg.rb
games_bfox-0.4.0 lib/games/mastermind/peg.rb