Method: NovelConverter#initialize_event

Defined in:
lib/novelconverter.rb

#initialize_eventObject



391
392
393
394
395
396
397
398
399
400
401
402
403
# File 'lib/novelconverter.rb', line 391

def initialize_event
  progressbar = nil

  one(:"convert_main.init") do |subtitles|
    progressbar = ProgressBar.new(subtitles.size)
  end
  on(:"convert_main.loop") do |i|
    progressbar.output(i) if progressbar
  end
  one(:"convert_main.finish") do
    progressbar.clear if progressbar
  end
end