Class: Spectus::RequirementLevel::Low Private
- Defined in:
- lib/spectus/requirement_level/low.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Low requirement level’s class.
Instance Attribute Summary
Attributes inherited from Base
#challenges, #matcher, #subject
Instance Method Summary collapse
-
#result(isolation = false) ⇒ Result::Fail, Result::Pass
private
Evaluate the expectation.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spectus::RequirementLevel::Base
Instance Method Details
#result(isolation = false) ⇒ Result::Fail, Result::Pass
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Evaluate the expectation.
16 17 18 19 20 21 22 23 24 |
# File 'lib/spectus/requirement_level/low.rb', line 16 def result(isolation = false) state = sandbox(isolation) if state.valid? || state.exception.is_a?(::NoMethodError) pass!(state) else fail!(state) end end |