class Shogi::Cell
Attributes
piece[RW]
turn[RW]
x[R]
y[R]
Public Class Methods
new(x, y, piece=nil, turn=nil)
click to toggle source
# File lib/shogi/cell.rb, line 15 def initialize(x, y, piece=nil, turn=nil) @x = x @y = y @piece = piece @turn = turn end
register(name)
click to toggle source
# File lib/shogi/cell.rb, line 6 def self.register(name) send(:include, Format.const_get(name).const_get("Cell")) end