Method: QuickExam::Analyst::BaseHTML#initialize
- Defined in:
- lib/quick_exam/analyst/base_html.rb
#initialize(file_path, f_ques: '', f_corr: '') ⇒ BaseHTML
Returns a new instance of BaseHTML.
10 11 12 13 14 15 16 |
# File 'lib/quick_exam/analyst/base_html.rb', line 10 def initialize(file_path, f_ques: '' , f_corr: '') raise ErrorAnalyze.new('No such file') unless File.exist? file_path @file_path = file_path @f_ques = f_ques @f_corr = f_corr @records = QuickExam::RecordCollection.new() end |