Class: Rbxl::Cell
- Inherits:
-
Struct
- Object
- Struct
- Rbxl::Cell
- Defined in:
- lib/rbxl/cell.rb
Overview
Generic value-object cell used by the pure-Ruby reader path.
Yielded as an element of Row#cells when a worksheet is iterated without values_only. Cells are keyword-constructed and expose the decoded Ruby value plus the Excel-style coordinate.
cell = Rbxl::Cell.new(value: 42, coordinate: "B3")
cell.value # => 42
cell.coordinate # => "B3"
Instance Attribute Summary collapse
-
#coordinate ⇒ String?
Excel-style coordinate such as “B3”.
-
#value ⇒ Object
Decoded Ruby value for the cell (String, Numeric, Boolean, or
nil).
Instance Attribute Details
#coordinate ⇒ String?
Returns Excel-style coordinate such as “B3”.
17 |
# File 'lib/rbxl/cell.rb', line 17 Cell = Struct.new(:value, :coordinate, keyword_init: true) |
#value ⇒ Object
Returns decoded Ruby value for the cell (String, Numeric, Boolean, or nil).
17 |
# File 'lib/rbxl/cell.rb', line 17 Cell = Struct.new(:value, :coordinate, keyword_init: true) |