Class: Exam::PassingCriterion::None
- Inherits:
-
Exam::PassingCriterion
- Object
- Exam::PassingCriterion
- Exam::PassingCriterion::None
- Defined in:
- app/models/exam/passing_criterion.rb
Instance Attribute Summary
Attributes inherited from Exam::PassingCriterion
Instance Method Summary collapse
-
#initialize(_) ⇒ None
constructor
A new instance of None.
- #valid_passing_grade? ⇒ Boolean
Methods inherited from Exam::PassingCriterion
#as_json, #ensure_valid!, parse, parse_criterion_type, #type
Constructor Details
#initialize(_) ⇒ None
Returns a new instance of None.
34 35 36 |
# File 'app/models/exam/passing_criterion.rb', line 34 def initialize(_) @value = nil end |
Instance Method Details
#valid_passing_grade? ⇒ Boolean
38 39 40 |
# File 'app/models/exam/passing_criterion.rb', line 38 def valid_passing_grade? !value end |