Class: Lazy::Checker::Code
- Inherits:
-
Object
- Object
- Lazy::Checker::Code
- Defined in:
- lib/lazy/check/checker_code.rb
Overview
/<< self
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#report ⇒ Object
readonly
Le rapport courant (pour pouvoir être modifié en cours de test).
-
#urler ⇒ Object
readonly
Returns the value of attribute urler.
Instance Method Summary collapse
-
#check_against(data_check, **options) ⇒ Object
Méthode qui procède au check.
-
#initialize(xml_code) ⇒ Code
constructor
A new instance of Code.
- #name ⇒ Object
- #no_output? ⇒ Boolean
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
82 83 84 |
# File 'lib/lazy/check/checker_code.rb', line 82 def @options end |
#report ⇒ Object (readonly)
Le rapport courant (pour pouvoir être modifié en cours de test)
80 81 82 |
# File 'lib/lazy/check/checker_code.rb', line 80 def report @report end |
#urler ⇒ Object (readonly)
Returns the value of attribute urler.
76 77 78 |
# File 'lib/lazy/check/checker_code.rb', line 76 def urler @urler end |
Instance Method Details
#check_against(data_check, **options) ⇒ Object
Méthode qui procède au check
94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/lazy/check/checker_code.rb', line 94 def check_against(data_check, **) @options = @report = Reporter.new(self) @report.start check_case = Checker::CheckCase.new(urler, data_check, @report) check_case.check @report.end if [:return_result] return report else report.display end end |
#name ⇒ Object
108 109 110 |
# File 'lib/lazy/check/checker_code.rb', line 108 def name MESSAGES[:CodeToTest] end |
#no_output? ⇒ Boolean
112 113 114 |
# File 'lib/lazy/check/checker_code.rb', line 112 def no_output? [:return_result] === true end |