lib/boardgame/tile.rb in boardgame-0.0.2 vs lib/boardgame/tile.rb in boardgame-0.0.3

- old
+ new

@@ -27,6 +27,12 @@ def remove(piece) piece.tile = nil @content.delete piece end + + def as_json(*args) + {x: @x, + y: @y, + content: @content} + end end