Class: SmartCore::Schema::Checker::Reconciler::Matcher::Options Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/schema/checker/reconciler/matcher/options.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.3.0

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(is_strict_schema) ⇒ 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:

  • is_strict_schema (Boolean)

Since:

  • 0.3.0



22
23
24
# File 'lib/smart_core/schema/checker/reconciler/matcher/options.rb', line 22

def initialize(is_strict_schema)
  @is_strict_schema = is_strict_schema
end

Class Method Details

.build_from(reconciler) ⇒ SmartCore::Schema::Checker::Reconciler::Matcher::Options

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.



12
13
14
# File 'lib/smart_core/schema/checker/reconciler/matcher/options.rb', line 12

def build_from(reconciler)
  new(reconciler.__strict?)
end

Instance Method Details

#strict_schema?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.

Returns:

  • (Boolean)

Since:

  • 0.3.0



30
31
32
# File 'lib/smart_core/schema/checker/reconciler/matcher/options.rb', line 30

def strict_schema?
  @is_strict_schema
end