lib/axlsx/workbook/worksheet/row.rb in axlsx-1.0.8 vs lib/axlsx/workbook/worksheet/row.rb in axlsx-1.0.9
- old
+ new
@@ -10,14 +10,10 @@
# The cells this row holds
# @return [SimpleTypedList]
attr_reader :cells
- # The index of this row in the worksheet
- # @return [Integer]
- attr_reader :index
-
# Creates a new row. New Cell objects are created based on the values, types and style options.
# A new cell is created for each item in the values array. style and types options are applied as follows:
# If the types option is defined and is a symbol it is applied to all the cells created.
# If the types option is an array, cell types are applied by index for each cell
# If the types option is not set, the cell will automatically determine its type.
@@ -35,9 +31,11 @@
@cells = SimpleTypedList.new Cell
@worksheet.rows << self
array_to_cells(values, options)
end
+ # The index of this row in the worksheet
+ # @return [Integer]
def index
worksheet.rows.index(self)
end
# Serializes the row