Class: Rbxl::Cell

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#coordinateString?

Returns Excel-style coordinate such as “B3”.

Returns:

  • (String, nil)

    Excel-style coordinate such as “B3”



17
# File 'lib/rbxl/cell.rb', line 17

Cell = Struct.new(:value, :coordinate, keyword_init: true)

#valueObject

Returns decoded Ruby value for the cell (String, Numeric, Boolean, or nil).

Returns:

  • (Object)

    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)