Sha256: ce6ec0de8b48f1e2862cd2d69d5147d24ad45e6d7c20c1dacd19767a3e0cbccd

Contents?: true

Size: 325 Bytes

Versions: 14

Compression:

Stored size: 325 Bytes

Contents

# FIXME: This is obviously bad programming. What if we multithread?!
module RubyFromExcel
  class SheetNames < Hash
    include Singleton
    
    def marshal_dump
      map { |a,b| [a,b] }
    end

    def marshal_load array
      array.each do |sheet|
        self[sheet.first] = sheet.last
      end
    end
    
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.22 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.21 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.20 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.19 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.18 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.17 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.16 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.13 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.10 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.9 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.7 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.6 lib/excelfile/sheet_names.rb
rubyfromexcel-0.0.5 lib/excelfile/sheet_names.rb