Class: SmartCore::Initializer::Settings Private
- Inherits:
-
Object
- Object
- SmartCore::Initializer::Settings
- 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.
Defined Under Namespace
Modules: Duplicator Classes: AutoCast, Base, StrictOptions, TypeSystem
Instance Method Summary collapse
- #auto_cast ⇒ Boolean private
- #auto_cast=(value) ⇒ void private
- #dup ⇒ SmartCore::Initializer::Settings private
- #generic_type_object ⇒ Any private
- #initialize ⇒ void constructor private
- #strict_options ⇒ Boolean private
- #strict_options=(value) ⇒ void private
- #type_system ⇒ Symbol private
- #type_system=(value) ⇒ void private
Constructor Details
#initialize ⇒ 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.
17 18 19 20 21 |
# File 'lib/smart_core/initializer/settings.rb', line 17 def initialize @type_system = TypeSystem.new = StrictOptions.new @auto_cast = AutoCast.new end |
Instance Method Details
#auto_cast ⇒ 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.
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.
78 79 80 |
# File 'lib/smart_core/initializer/settings.rb', line 78 def auto_cast=(value) @auto_cast.assign(value) end |
#dup ⇒ SmartCore::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.
86 87 88 |
# File 'lib/smart_core/initializer/settings.rb', line 86 def dup Duplicator.duplicate(self) end |
#generic_type_object ⇒ Any
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/initializer/settings.rb', line 27 def generic_type_object @type_system.generic_type_object end |
#strict_options ⇒ 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.
43 44 45 |
# File 'lib/smart_core/initializer/settings.rb', line 43 def .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.
69 70 71 |
# File 'lib/smart_core/initializer/settings.rb', line 69 def (value) .assign(value) end |
#type_system ⇒ Symbol
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.
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.
60 61 62 |
# File 'lib/smart_core/initializer/settings.rb', line 60 def type_system=(value) @type_system.assign(value) end |