class Conwy::World
Attributes
cell_grid[R]
Public Class Methods
new(cell_string)
click to toggle source
# File lib/conwy/world.rb, line 3 def initialize(cell_string) @cell_grid = CellGrid.from_s(cell_string) end
Public Instance Methods
next()
click to toggle source
# File lib/conwy/world.rb, line 11 def next self.class.new(cell_grid.next.to_s) end
to_s()
click to toggle source
# File lib/conwy/world.rb, line 7 def to_s cell_grid.to_s end