Sha256: a09d25bc67c1627f58f260ce7637207d8808bf1e0a31909c8788afd3450f32d2
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
module TTT class Square attr_accessor :value, :display_value attr_reader :row, :col def initialize(args) @value = args[:value] @display_value = args[:display_value] @row = args[:row] @col = args[:col] end def change_value(new_value) self.value = new_value self.display_value = new_value end def empty? return true unless full? end def full? if value != nil return true else return false end end end end
Version data entries
5 entries across 5 versions & 2 rubygems