class SpreadBase::Cell

Represents the abstraction of a cell; values and their types are merged into a single entity.

Attributes

value[RW]

Public Class Methods

new(value) click to toggle source
# File lib/spreadbase/cell.rb, line 9
def initialize(value)
  @value = value
end

Public Instance Methods

==(other) click to toggle source
# File lib/spreadbase/cell.rb, line 13
def ==(other)
  other.is_a?(Cell) && @value == other.value
end