Sha256: a2ab6b21830117c8a162f897c062e6dda1aedd27609d9c6313aff93de755c6fa
Contents?: true
Size: 720 Bytes
Versions: 9
Compression:
Stored size: 720 Bytes
Contents
# Part of the Optimus package for managing E-Prime data # # Copyright (C) 2008-09 Board of Regents of the University of Wisconsin System # # Written by Nathan Vack <njvack@wisc.edu>, at the Waisman Laborotory for Brain # Imaging and Behavior, University of Wisconsin - Madison # This almost completely delegates to TabfileParser require 'tabfile_parser' module Optimus class Reader class ExcelParser < TabfileParser def initialize(file, options = {}) options = options.merge(:skip_lines => 1) super(file, options) end def self.can_parse?(lines) ary = lines.map {|l| l.strip.split("\t")} ary[0].size == 1 and ary[1].size >= 3 end end end end
Version data entries
9 entries across 9 versions & 1 rubygems