Class: Yoda::Store::Objects::MetaClassObject::Connected

Inherits:
NamespaceObject::Connected show all
Defined in:
lib/yoda/store/objects/meta_class_object.rb

Instance Attribute Summary

Attributes inherited from Base::Connected

#object, #registry

Instance Method Summary collapse

Methods inherited from NamespaceObject::Connected

#ancestors, #constant_members, #method_members, #mixins

Methods inherited from Base::Connected

#initialize, #merge, #meta_class, #with_connection

Methods included from ConnectedDelegation

#delegate_to_object

Constructor Details

This class inherits a constructor from Yoda::Store::Objects::Base::Connected

Instance Method Details

#instanceBase::Connected?

Returns:



15
16
17
# File 'lib/yoda/store/objects/meta_class_object.rb', line 15

def instance
  registry.get(path)&.with_connection(**connection_options)
end

#superclassNamespaceObject::Connected



10
11
12
# File 'lib/yoda/store/objects/meta_class_object.rb', line 10

def superclass
  ancestor_tree.superclass.with_connection(**connection_options)
end