Module: SmartCore::Initializer::Attribute::Builder Private
- Defined in:
- lib/smart_core/initializer/attribute/builder.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- DEFAULT_FINALIZE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
-> (value) { value }.freeze
Class Method Summary collapse
Class Method Details
.build(name, type: :__any__, privacy: :default, finalize: DEFAULT_FINALIZE, **options) ⇒ SmartCore::Initializer::Attribute
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.
28 29 30 31 32 33 34 35 |
# File 'lib/smart_core/initializer/attribute/builder.rb', line 28 def build(name, type: :__any__, privacy: :default, finalize: DEFAULT_FINALIZE, **) name = represent_name_attr(name) type = represent_type_attr(type) privacy = represent_privacy_attr(privacy) finalizer = represent_finalizer_attr(finalize) SmartCore::Initializer::Attribute.new(name, type, privacy, finalizer, **) end |