Method: RubyXL::Worksheet#cell_at

Defined in:
lib/rubyXL/objects/worksheet.rb

#cell_at(ref) ⇒ Object

[View source]

754
755
756
757
758
# File 'lib/rubyXL/objects/worksheet.rb', line 754

def cell_at(ref)
  reference = RubyXL::Reference.new(ref)
  raise "Invalid reference: #{ref}" unless reference.valid? && reference.single_cell?
  sheet_data&.rows&.[](reference.first_row)&.cells&.[](reference.first_col)
end