Module: SmartCore::Initializer::TypeSystem::Interop::Aliasing::ClassMethods Private
- Defined in:
- lib/smart_core/initializer/type_system/interop/aliasing.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.
Instance Method Summary collapse
- #__type_aliases__ ⇒ SmartCore::Initializer::TypeSystem::Interop::Aliasing::AliasList private
- #type_alias(alias_name, type) ⇒ void
- #type_aliases ⇒ Array<String>
- #type_from_alias(alias_name) ⇒ Any
Instance Method Details
#__type_aliases__ ⇒ SmartCore::Initializer::TypeSystem::Interop::Aliasing::AliasList
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.
41 42 43 |
# File 'lib/smart_core/initializer/type_system/interop/aliasing.rb', line 41 def __type_aliases__ @__type_aliases__ end |
#type_alias(alias_name, type) ⇒ void
This method returns an undefined value.
59 60 61 |
# File 'lib/smart_core/initializer/type_system/interop/aliasing.rb', line 59 def type_alias(alias_name, type) __type_aliases__.associate(alias_name, type) end |
#type_aliases ⇒ Array<String>
49 50 51 |
# File 'lib/smart_core/initializer/type_system/interop/aliasing.rb', line 49 def type_aliases __type_aliases__.keys end |
#type_from_alias(alias_name) ⇒ Any
68 69 70 |
# File 'lib/smart_core/initializer/type_system/interop/aliasing.rb', line 68 def type_from_alias(alias_name) __type_aliases__.resolve(alias_name) end |