Module: Fastxl

Defined in:
lib/fastxl.rb,
lib/fastxl/version.rb

Defined Under Namespace

Classes: Workbook

Constant Summary collapse

VERSION =
"0.4.0"

Class Method Summary collapse

Class Method Details

.createObject



7
8
9
# File 'lib/fastxl.rb', line 7

def self.create
  open(File.join(File.dirname(__FILE__), 'templates', 'one_sheet.xlsx'))
end

.open(file_path) ⇒ Object



11
12
13
# File 'lib/fastxl.rb', line 11

def self.open(file_path)
  Fastxl::Workbook.new(Zip::File.open(file_path))
end