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(definition, negate, subject, challenge) ⇒ 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 challenge for the subject.

API:

  • private



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

def initialize(definition, negate, subject, challenge)
  @definition = definition
  @negate     = negate
  @subject    = subject
  @challenge  = challenge
end