Module: Yoda::Store::Objects::Library::WithRegistry

Included in:
Core::Connected, Gem::Connected, Std::Connected
Defined in:
lib/yoda/store/objects/library/with_registry.rb

Instance Method Summary collapse

Instance Method Details

#registryRegistry::LibraryRegistry



19
20
21
22
23
# File 'lib/yoda/store/objects/library/with_registry.rb', line 19

def registry
  @registry ||= begin
    Registry::LibraryRegistry.for_library(self)
  end
end

#registry_exists?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/yoda/store/objects/library/with_registry.rb', line 7

def registry_exists?
  registry_path && File.exists?(registry_path)
end

#registry_pathString?

This method is abstract.

Return the path of registry for the library.

Returns:

  • (String, nil)


14
15
16
# File 'lib/yoda/store/objects/library/with_registry.rb', line 14

def registry_path
  fail NotImplementedError
end