Module: Rrxcell
- Defined in:
- lib/rrxcell.rb,
lib/rrxcell/version.rb
Defined Under Namespace
Modules: Addressing, Excel, Excelx
Classes: Book, Cell, Row, Sheet
Constant Summary
collapse
- ROOT =
File.expand_path(File.join(File.dirname(__FILE__), ".."))
- LIB =
File.join(ROOT, "lib")
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.load(path) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/rrxcell.rb', line 7
def self.load(path)
case File.extname(path)
when /\A\.xlsx\z/
Rrxcell::Excelx::Book.new(path)
when /\A\.xls\z/
Rrxcell::Excel::Book.new(path)
else
raise "invalid path '#{path}'"
end
end
|