Method: FXlsx::File.open_file

Defined in:
lib/f_xlsx/file.rb

.open_file(path) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/f_xlsx/file.rb', line 12

def self.open_file(path)
  XlsxExt.load_lib
  instance = File.new
  instance.id = XlsxExt.openFile(path)
  instance.has_file = true
  instance
end