Class: CSVPlusPlus::Reader::RubyXL
- Extended by:
- T::Generic, T::Sig
- Defined in:
- lib/csv_plus_plus/reader/rubyxl.rb
Overview
Reads an Excel file
Constant Summary collapse
- CellValue =
type_member { { fixed: ::RubyXL::Cell } }
Instance Method Summary collapse
-
#initialize(options, worksheet) ⇒ RubyXL
constructor
Open an excel outputter to the
output_filename
specified by theOptions
. -
#value_at(cell) ⇒ RubyXL::Cell?
Get the current value at the
cell
‘s position.
Constructor Details
#initialize(options, worksheet) ⇒ RubyXL
Open an excel outputter to the output_filename
specified by the Options
19 20 21 22 23 24 |
# File 'lib/csv_plus_plus/reader/rubyxl.rb', line 19 def initialize(, worksheet) super() @options = @worksheet = worksheet end |
Instance Method Details
#value_at(cell) ⇒ RubyXL::Cell?
Get the current value at the cell
‘s position
32 33 34 |
# File 'lib/csv_plus_plus/reader/rubyxl.rb', line 32 def value_at(cell) @worksheet.sheet_data[cell.row_index]&.[](cell.index) end |