Class: OKF::Registry::Link

Inherits:
Struct
  • Object
show all
Defined in:
lib/okf/registry.rb

Overview

A pointer from the global registry to another registry file: a unique slug and the absolute registry path. Its bundles resolve through it at read time under their own slugs, so nothing is copied and nothing goes stale — the registry's "references, never content" rule one level up. Only the global registry follows links (see .load), which is why a linked file's own links are never read and there is no graph to cycle-guard.

Instance Attribute Summary collapse

Instance Attribute Details

#registryObject

Returns the value of attribute registry

Returns:

  • (Object)

    the current value of registry



67
68
69
# File 'lib/okf/registry.rb', line 67

def registry
  @registry
end

#slugObject

Returns the value of attribute slug

Returns:

  • (Object)

    the current value of slug



67
68
69
# File 'lib/okf/registry.rb', line 67

def slug
  @slug
end