Class: Xlsx2Mysql::XlsxController

Inherits:
Object
  • Object
show all
Defined in:
lib/xlsx2mysql/xlsx_controller.rb

Instance Method Summary collapse

Instance Method Details

#at_cell(index) ⇒ Object



5
6
7
8
# File 'lib/xlsx2mysql/xlsx_controller.rb', line 5

def at_cell index
  load unless @ws
  @ws[index]
end

#max_rowObject



10
11
12
13
# File 'lib/xlsx2mysql/xlsx_controller.rb', line 10

def max_row
  load unless @ws
  @ws.max_row.to_i
end

#wsObject



15
16
17
18
# File 'lib/xlsx2mysql/xlsx_controller.rb', line 15

def ws
  load unless @ws
  @ws
end