Class: Spectus::RequirementLevel::May
- Defined in:
- lib/spectus/requirement_level/may.rb
Overview
May requirement level’s class.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#pass? ⇒ Boolean
Evaluate the expectation.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spectus::RequirementLevel::Base
Instance Method Details
#pass? ⇒ Boolean
Evaluate the expectation.
12 13 14 |
# File 'lib/spectus/requirement_level/may.rb', line 12 def pass? super || exam.exception.is_a?(::NoMethodError) end |