Class: SmartCore::Schema::Checker::Rules::Options Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/schema/checker/rules/options.rb,
lib/smart_core/schema/checker/rules/options/type.rb,
lib/smart_core/schema/checker/rules/options/filled.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.8.0

Defined Under Namespace

Classes: Empty, Filled, Type

Instance Method Summary collapse

Constructor Details

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



16
17
18
19
# File 'lib/smart_core/schema/checker/rules/options.rb', line 16

def initialize(rule)
  @type = Empty.new(rule)
  @filled = Empty.new(rule)
end

Instance Method Details

#filledSmartCore::Schema::Checker::Rules::Options::Filled, SmartCore::Schema::Checker::Rules::Options::Empty

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.



47
48
49
# File 'lib/smart_core/schema/checker/rules/options.rb', line 47

def filled
  @filled
end

#filled=(option) ⇒ 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.

This method returns an undefined value.

Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



57
58
59
# File 'lib/smart_core/schema/checker/rules/options.rb', line 57

def filled=(option)
  @filled = option
end

#typeSmartCore::Schema::Checker::Rules::Options::Type, SmartCore::Schema::Checker::Rules::Options::Empty

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.



27
28
29
# File 'lib/smart_core/schema/checker/rules/options.rb', line 27

def type
  @type
end

#type=(option) ⇒ 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.

This method returns an undefined value.

Parameters:

Since:

  • 0.1.0

Version:

  • 0.8.0



37
38
39
# File 'lib/smart_core/schema/checker/rules/options.rb', line 37

def type=(option)
  @type = option
end