Class: QuickExam::Analyst::BaseHTML
- Defined in:
- lib/quick_exam/analyst/base_html.rb
Constant Summary
Constants included from Format
Format::ALLOWED_ELEMENTS, Format::CORRECT_MARK, Format::FOLDER_NAME_EXPORT, Format::QUESTION_MARK
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#records ⇒ Object
readonly
Returns the value of attribute records.
-
#total_line ⇒ Object
readonly
Returns the value of attribute total_line.
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(file_path, f_ques: '', f_corr: '') ⇒ BaseHTML
constructor
A new instance of BaseHTML.
Methods included from Common
#answer, #answer?, #clean_object, #collect_object_ticket, #correct_answer?, #end_of_line?, #end_of_one_ticket_for_next_question?, #get_answer, #get_correct_indexes_answer, #get_question, #question, #question?, #regex_answer_mark, #regex_answer_sentence, #regex_question_mark, #reset_object_ticket, #rid_non_ascii!
Methods included from Format
Constructor Details
#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 |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
8 9 10 |
# File 'lib/quick_exam/analyst/base_html.rb', line 8 def file @file end |
#records ⇒ Object (readonly)
Returns the value of attribute records.
8 9 10 |
# File 'lib/quick_exam/analyst/base_html.rb', line 8 def records @records end |
#total_line ⇒ Object (readonly)
Returns the value of attribute total_line.
8 9 10 |
# File 'lib/quick_exam/analyst/base_html.rb', line 8 def total_line @total_line end |
Instance Method Details
#analyze ⇒ Object
18 19 20 |
# File 'lib/quick_exam/analyst/base_html.rb', line 18 def analyze data_standardize end |