# File app/bin/excel_info.rb, line 37 def process_many_file @xl = nil begin # Excelアプリを起動します。 @xl = WIN32OLE.new('Excel.Application') # 定数をロードします。 WIN32OLE.const_load(@xl, ExcelInfoApp) unless @@const_load_flag @@const_load_flag = true # 継承元クラスの処理を呼び出します。 super ensure # Excelアプリを終了します。 @xl.Quit if @xl @xl = nil end end