Class: SmartCore::Initializer::Settings Private

Inherits:
Object
  • Object
show all
Defined in:
lib/smart_core/initializer/settings.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

Defined Under Namespace

Modules: Duplicator Classes: AutoCast, Base, StrictOptions, TypeSystem

Instance Method Summary collapse

Constructor Details

#initializevoid

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.

Since:

  • 0.1.0

Version:

  • 0.8.0



17
18
19
20
21
# File 'lib/smart_core/initializer/settings.rb', line 17

def initialize
  @type_system = TypeSystem.new
  @strict_options = StrictOptions.new
  @auto_cast = AutoCast.new
end

Instance Method Details

#auto_castBoolean

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.8.0



51
52
53
# File 'lib/smart_core/initializer/settings.rb', line 51

def auto_cast
  @auto_cast.resolve
end

#auto_cast=(value) ⇒ 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:

  • value (Boolean)

Since:

  • 0.8.0



78
79
80
# File 'lib/smart_core/initializer/settings.rb', line 78

def auto_cast=(value)
  @auto_cast.assign(value)
end

#dupSmartCore::Initializer::Settings

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:

Since:

  • 0.1.0



86
87
88
# File 'lib/smart_core/initializer/settings.rb', line 86

def dup
  Duplicator.duplicate(self)
end

#generic_type_objectAny

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:

  • (Any)

Since:

  • 0.1.0



27
28
29
# File 'lib/smart_core/initializer/settings.rb', line 27

def generic_type_object
  @type_system.generic_type_object
end

#strict_optionsBoolean

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.8.0



43
44
45
# File 'lib/smart_core/initializer/settings.rb', line 43

def strict_options
  @strict_options.resolve
end

#strict_options=(value) ⇒ 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:

  • value (Boolean)

Since:

  • 0.8.0



69
70
71
# File 'lib/smart_core/initializer/settings.rb', line 69

def strict_options=(value)
  @strict_options.assign(value)
end

#type_systemSymbol

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:

  • (Symbol)

Since:

  • 0.1.0



35
36
37
# File 'lib/smart_core/initializer/settings.rb', line 35

def type_system
  @type_system.resolve
end

#type_system=(value) ⇒ 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:

  • value (String, System)

Since:

  • 0.1.0



60
61
62
# File 'lib/smart_core/initializer/settings.rb', line 60

def type_system=(value)
  @type_system.assign(value)
end