Class: Anydoc::CellSlot
- Inherits:
-
Data
- Object
- Data
- Anydoc::CellSlot
- 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
-
#cell ⇒ Cell?
readonly
Origin.
-
#kind ⇒ Symbol
readonly
:origin | :covered.
-
#origin_col ⇒ Integer?
readonly
Covered: column of the origin this position belongs to.
-
#origin_row ⇒ Integer?
readonly
Covered: row of the origin this position belongs to.
Instance Attribute Details
#cell ⇒ Cell? (readonly)
Returns origin.
182 183 |
# File 'lib/anydoc/document.rb', line 182 class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col) end |
#kind ⇒ Symbol (readonly)
:origin | :covered
182 183 |
# File 'lib/anydoc/document.rb', line 182 class CellSlot < Data.define(:kind, :cell, :origin_row, :origin_col) end |
#origin_col ⇒ Integer? (readonly)
Returns 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_row ⇒ Integer? (readonly)
Returns 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 |