Class: Batch
- Inherits:
-
Object
- Object
- Batch
- Defined in:
- lib/menu.rb
Instance Method Summary collapse
-
#initialize ⇒ Batch
constructor
Process all spreadsheets in specified directory.
- #process(cur_conf) ⇒ Object
Constructor Details
#initialize ⇒ Batch
Process all spreadsheets in specified directory
102 103 104 |
# File 'lib/menu.rb', line 102 def initialize puts #format end |
Instance Method Details
#process(cur_conf) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/menu.rb', line 106 def process(cur_conf) if cur_conf[:work_dir] == "Not Set" || cur_conf[:auto_mater] == "Off" cur_conf = Configurator.new.choices(cur_conf) end puts "Processing " + cur_conf[:work_dir].yellow + ":" sleep(0.5) puts "...".yellow sleep(0.5) puts "......".red sleep(0.5) puts ".........done!".green Printers.new.batch(cur_conf[:work_dir]) end |