Class: Spectus::Requirement::Optional
- Defined in:
- lib/spectus/requirement/optional.rb
Overview
Implementation of MAY requirements from RFC 2119.
This level represents optional features. A test at this level passes in two cases:
-
When the feature is implemented and the matcher returns true
-
When NoMethodError is raised, indicating the feature is not implemented
Class Method Summary collapse
-
.level ⇒ Symbol
The RFC 2119 keyword for this requirement level.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spectus::Requirement::Base
Class Method Details
.level ⇒ Symbol
The RFC 2119 keyword for this requirement level.
28 29 30 |
# File 'lib/spectus/requirement/optional.rb', line 28 def self.level :MAY end |