Sha256: 969a01988d1fca2b92b61b82ac48c5a4acdfb1333eb76ac97703c6e80985c90a
Contents?: true
Size: 268 Bytes
Versions: 1
Compression:
Stored size: 268 Bytes
Contents
require_relative './coordinate' module Gameboard class Cell attr_accessor :value attr_reader :coord def initialize(coord, value: false) raise TypeError unless coord.is_a?(Coordinate) @value = value @coord = coord end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gameboard-2.0.0 | lib/gameboard/cell.rb |