Class: Anydoc::CellSlot

Inherits:
Data
  • Object
show all
Defined in:
lib/anydoc/document.rb,
sig/anydoc.rbs

Overview

One position in a Table#grid: either a cell or the shadow of one.

Instance Attribute Summary collapse

Instance Attribute Details

#cellCell? (readonly)

Returns origin.

Returns:

  • (Cell, nil)

    origin.



182
183
# File 'lib/anydoc/document.rb', line 182

class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col)
end

#kindSymbol (readonly)

:origin | :covered

Returns:

  • (Symbol)


182
183
# File 'lib/anydoc/document.rb', line 182

class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col)
end

#origin_colInteger? (readonly)

Returns covered: column of the origin this position belongs to.

Returns:

  • (Integer, nil)

    covered: column of the origin this position belongs to.



182
183
# File 'lib/anydoc/document.rb', line 182

class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col)
end

#origin_rowInteger? (readonly)

Returns covered: row of the origin this position belongs to.

Returns:

  • (Integer, nil)

    covered: row of the origin this position belongs to.



182
183
# File 'lib/anydoc/document.rb', line 182

class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col)
end