Class: Spectus::RequirementLevel::Base Private
- Inherits:
-
Object
- Object
- Spectus::RequirementLevel::Base
- Defined in:
- lib/spectus/requirement_level/base.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.
Requirement level’s base class.
Instance Attribute Summary collapse
-
#challenges ⇒ Array
readonly
private
A list of challenges.
-
#req ⇒ Hash, Symbol
readonly
private
The definition of the expected value.
-
#subject ⇒ #object_id
readonly
private
The front object to test.
Instance Method Summary collapse
-
#initialize(req, negate, subject, *challenges) ⇒ Base
constructor
private
Initialize the requirement level class.
-
#negate? ⇒ Boolean
private
The value of the negate instance variable.
Constructor Details
#initialize(req, negate, subject, *challenges) ⇒ Base
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.
Initialize the requirement level class.
18 19 20 21 22 23 |
# File 'lib/spectus/requirement_level/base.rb', line 18 def initialize(req, negate, subject, *challenges) @req = req @negate = negate @subject = subject @challenges = challenges end |
Instance Attribute Details
#challenges ⇒ Array (readonly)
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.
Returns A list of challenges.
45 46 47 |
# File 'lib/spectus/requirement_level/base.rb', line 45 def challenges @challenges end |
#req ⇒ Hash, Symbol (readonly)
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.
Returns The definition of the expected value.
28 29 30 |
# File 'lib/spectus/requirement_level/base.rb', line 28 def req @req end |
#subject ⇒ #object_id (readonly)
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.
Returns The front object to test.
40 41 42 |
# File 'lib/spectus/requirement_level/base.rb', line 40 def subject @subject end |
Instance Method Details
#negate? ⇒ Boolean
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.
The value of the negate instance variable.
33 34 35 |
# File 'lib/spectus/requirement_level/base.rb', line 33 def negate? @negate end |