Class: Spectus::RequirementLevel::Base Private

Inherits:
Object
  • Object
show all
Defined in:
lib/spectus/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.

API:

  • private

Direct Known Subclasses

High, Low, Medium

Instance Method Summary collapse

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.

Parameters:

  • The definition of the expected value.

  • Evaluate to a negative assertion.

  • The front object to test.

  • A list of challenges.

API:

  • private



20
21
22
23
24
25
# File 'lib/spectus/level/base.rb', line 20

def initialize(req, negate, subject, *challenges)
  @req        = req
  @negate     = negate
  @subject    = subject
  @challenges = challenges
end