lib/lifegame/life.rb in lifegame-0.1.1 vs lib/lifegame/life.rb in lifegame-0.2.0

- old
+ new

@@ -1,12 +1,15 @@ module Lifegame class Life + ALIVE = '-' + DEAD = '_' + def initialize(life = false) @life = life end def to_s - alive? ? '.' : '-' + alive? ? ALIVE : DEAD end def alive? @life end