Module: SmartCore::Initializer
- Included in:
- Operation
- Defined in:
- lib/smart_core/initializer.rb,
lib/smart_core/initializer/exceptions.rb,
lib/smart_core/initializer/initialization_dsl.rb
Overview
Defined Under Namespace
Modules: InitializationDSL, InstanceAttributeAccessing Classes: Attribute, AttributeDefiner, AttributeSet, Extension, ExtensionDefiner, ExtensionSet, InstanceBuilder, Type, TypeSet
Constant Summary collapse
- Error =
Class.new(SmartCore::Error)
- ArgumentError =
Class.new(SmartCore::ArgumentError)
- IncompatibleFinalizerTypeError =
Class.new(ArgumentError)
- ParameterError =
Class.new(ArgumentError)
- ParamOverlapError =
Class.new(ParameterError)
- OptionError =
Class.new(ArgumentError)
- OptionOverlapError =
Class.new(OptionError)
- IncorrectAttributeNameError =
Class.new(Error)
- UnregisteredTypeError =
Class.new(Error)
- UnsupportedAttributePrivacyError =
Class.new(Error)
- TypeError =
Class.new(ArgumentError)
Class Method Summary collapse
- .get_type(name) ⇒ SmartCore::Initializer::Type private
- .included(child_klass) ⇒ void
- .register_type(name, &checker) ⇒ void
- .types ⇒ SmartCore::Initializer::TypeSet private
Instance Method Summary collapse
Class Method Details
.get_type(name) ⇒ SmartCore::Initializer::Type
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.
48 49 50 |
# File 'lib/smart_core/initializer.rb', line 48 def get_type(name) types.resolve(name) end |
.included(child_klass) ⇒ void
This method returns an undefined value.
28 29 30 31 |
# File 'lib/smart_core/initializer.rb', line 28 def included(child_klass) child_klass.include(InitializationDSL) child_klass.include(InstanceAttributeAccessing) end |
.register_type(name, &checker) ⇒ void
This method returns an undefined value.
39 40 41 |
# File 'lib/smart_core/initializer.rb', line 39 def register_type(name, &checker) types.register(name, checker) end |
.types ⇒ SmartCore::Initializer::TypeSet
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.
56 57 58 |
# File 'lib/smart_core/initializer.rb', line 56 def types @__type_set__ end |
Instance Method Details
#initialize ⇒ void
65 |
# File 'lib/smart_core/initializer.rb', line 65 def initialize(*, **); end |