Class: RubyFromExcel::SheetNames
- Inherits:
-
Hash
- Object
- Hash
- RubyFromExcel::SheetNames
- Includes:
- Singleton
- Defined in:
- lib/excelfile/sheet_names.rb
Instance Method Summary collapse
Instance Method Details
#marshal_dump ⇒ Object
6 7 8 |
# File 'lib/excelfile/sheet_names.rb', line 6 def marshal_dump map { |a,b| [a,b] } end |
#marshal_load(array) ⇒ Object
10 11 12 13 14 |
# File 'lib/excelfile/sheet_names.rb', line 10 def marshal_load array array.each do |sheet| self[sheet.first] = sheet.last end end |