Class: OKF::Registry::Entry

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

Overview

One registered bundle: a unique slug, the absolute path on disk, and a human-readable title ("parent/dir"). link names the Link an entry arrived through (nil for one this registry owns), and origin the slug it carries in that linked file — the two differ only when the bare name was already taken here.

Instance Attribute Summary collapse

Instance Attribute Details

Returns the value of attribute link

Returns:

  • (Object)

    the current value of link



39
40
41
# File 'lib/okf/registry.rb', line 39

def link
  @link
end

#originObject

Returns the value of attribute origin

Returns:

  • (Object)

    the current value of origin



39
40
41
# File 'lib/okf/registry.rb', line 39

def origin
  @origin
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



39
40
41
# File 'lib/okf/registry.rb', line 39

def path
  @path
end

#slugObject

Returns the value of attribute slug

Returns:

  • (Object)

    the current value of slug



39
40
41
# File 'lib/okf/registry.rb', line 39

def slug
  @slug
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



39
40
41
# File 'lib/okf/registry.rb', line 39

def title
  @title
end