Class: SmartCore::Initializer::Attribute::Value::Param Private

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

Since:

  • 0.8.0

Constant Summary

Constants inherited from Base

Base::DEFAULT_AS, Base::DEFAULT_FINALIZER, Base::DEFAULT_MUTABLE, Base::DEFAULT_PRIVACY_MODE, Base::PRIVACY_MODES

Instance Attribute Summary

Attributes inherited from Base

#as, #cast, #finalizer, #klass, #mutable, #name, #privacy, #type, #type_system

Instance Method Summary collapse

Methods inherited from Base

#initialize, #validate!

Constructor Details

This class inherits a constructor from SmartCore::Initializer::Attribute::Value::Base

Instance Method Details

#dupSmartCore::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.



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/smart_core/initializer/attribute/value/param.rb', line 11

def dup
  self.class.new(
    klass,
    name.dup,
    type,
    type_system,
    privacy,
    finalizer.dup,
    cast,
    mutable,
    as
  )
end