module MergeExcel::FormatDetector
Public Instance Methods
detect_format(filepath)
click to toggle source
# File lib/merge_excel/format_detector.rb, line 3 def detect_format(filepath) case File.extname(filepath) when ".xls" :xls when ".xlsx" :xlsx else raise "Invalid format" end end