class Artabl::Cell

Attributes

body[R]
column[R]
row[R]

Public Class Methods

new(body:, column:, row:) click to toggle source
# File lib/artabl/cell.rb, line 4
def initialize(body:, column:, row:)
  @body = body
  @column = column
  @row = row

  column.add_cell(self)
  row.add_cell(self)
end

Public Instance Methods

size() click to toggle source
# File lib/artabl/cell.rb, line 15
def size
  body.length
end