Method: Exfuz::Parser#initialize
- Defined in:
- lib/exfuz/parser.rb
#initialize(path) ⇒ Parser
Returns a new instance of Parser.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/exfuz/parser.rb', line 9 def initialize(path) raise 'not exsits file' unless File.exist?(path) extname = File.extname(path) raise 'no match extension name' unless EXTENSIONS.include?(extname) @absolute_path = File.absolute_path(path) @book = nil @sheet_names = [] end |