Class: WinExcelDb::Run
- Inherits:
-
Object
- Object
- WinExcelDb::Run
- Defined in:
- lib/win_excel_db/run.rb
Class Method Summary collapse
Class Method Details
.mode(excel_handler) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/win_excel_db/run.rb', line 12 def self.mode(excel_handler) if !@modus then @modus=Hash.new @modus[excel_handler] = 'readonly' end @modus[excel_handler] end |
.set_mode(excel_handler, modus) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/win_excel_db/run.rb', line 4 def self.set_mode(excel_handler, modus) if !@modus then @modus=Hash.new end @modus[excel_handler] = 'readonly' @modus[excel_handler] = :writing if modus=='writing' end |