Class: Spectus::Requirement Private

Inherits:
BasicObject
Defined in:
lib/spectus/requirement.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 Method Summary collapse

Constructor Details

#initialize(definition, negate = false) ⇒ Requirement

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:

  • definition (Hash)
  • negate (Boolean) (defaults to: false)


13
14
15
16
# File 'lib/spectus/requirement.rb', line 13

def initialize(definition, negate = false)
  @definition = definition
  @negate     = negate
end