class Rubylife::Cell

Attributes

alive[RW]
x[RW]
y[RW]

Public Class Methods

new(x=0, y=0) click to toggle source
# File lib/rubylife/cell.rb, line 5
def initialize(x=0, y=0)
        @x = x
        @y = y
        @alive = false
end

Public Instance Methods

alive?() click to toggle source
# File lib/rubylife/cell.rb, line 11
def alive?
        @alive
end
dead?() click to toggle source
# File lib/rubylife/cell.rb, line 15
def dead?
        !@alive
end