Class: SmartCore::Schema::Checker::Rules::Optional Private

Inherits:
Base
  • Object
show all
Defined in:
lib/smart_core/schema/checker/rules/optional.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.

Since:

  • 0.1.0

Version:

  • 0.3.0

Instance Attribute Summary collapse

Attributes inherited from Base

#nested_reconciler, #options, #root_reconciler, #schema_key

Instance Method Summary collapse

Methods inherited from Base

#__verify!, #filled, #type

Constructor Details

#initialize(root_reconciler, schema_key, &nested_definitions) ⇒ void

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.

Parameters:

Since:

  • 0.1.0

Version:

  • 0.3.0



21
22
23
24
# File 'lib/smart_core/schema/checker/rules/optional.rb', line 21

def initialize(root_reconciler, schema_key, &nested_definitions)
  super(root_reconciler, schema_key, &nested_definitions)
  @requirement = SmartCore::Schema::Checker::Rules::Requirement::Optional.new(self)
end

Instance Attribute Details

#requirementSmartCore::Schema::Checker::Rules::Requirement::Optional (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.



11
12
13
# File 'lib/smart_core/schema/checker/rules/optional.rb', line 11

def requirement
  @requirement
end