Class: SmartCore::Initializer::Attribute::Factory::Param Private
- Defined in:
- lib/smart_core/initializer/attribute/factory/param.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.
Class Method Summary collapse
Class Method Details
.create(klass, name, type, type_system, privacy, finalize, cast, mutable, as) ⇒ SmartCore::Initializer::Attribute::Value::Param
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.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/smart_core/initializer/attribute/factory/param.rb', line 21 def create(klass, name, type, type_system, privacy, finalize, cast, mutable, as) prepared_name = prepare_name_param(name) prepared_privacy = prepare_privacy_param(privacy) prepared_finalize = prepare_finalize_param(finalize) prepared_cast = prepare_cast_param(cast) prepared_type_system = prepare_type_system_param(type_system) prepared_type = prepare_type_param(type, prepared_type_system) prepared_mutable = prepare_mutable_param(mutable) prepared_as = prepare_as_param(as) create_attribute( klass, prepared_name, prepared_type, prepared_type_system, prepared_privacy, prepared_finalize, prepared_cast, prepared_mutable, prepared_as ) end |