Method: Bmg::Reader::Excel#initialize
- Defined in:
- lib/bmg/reader/excel.rb
#initialize(type, path, options = {}) ⇒ Excel
Returns a new instance of Excel.
12 13 14 15 16 17 |
# File 'lib/bmg/reader/excel.rb', line 12 def initialize(type, path, = {}) require 'roo' @path = path @options = DEFAULT_OPTIONS.merge() @type = type.knows_attrlist? ? type : type.with_attrlist(infer_attrlist) end |