Class: Udb::Manual

Inherits:
TopLevelDatabaseObject show all
Defined in:
lib/udb/obj/manual.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Udb::TopLevelDatabaseObject

Instance Method Details

#marketing_nameString

Returns The title of the manual, as used by marketing.

Returns:

  • (String)

    The title of the manual, as used by marketing



25
# File 'lib/udb/obj/manual.rb', line 25

def marketing_name = @data["marketing_name"]

#repo_path=(path) ⇒ Object

for manuals that reference an external repo, set the url to that repo data (file path)



28
29
30
31
# File 'lib/udb/obj/manual.rb', line 28

def repo_path=(path)
  @repo_path = Pathname.new(path)
  versions.each { |v| v.repo_path = @repo_path }
end

#version(name) ⇒ Object



20
21
22
# File 'lib/udb/obj/manual.rb', line 20

def version(name)
  versions.find { |v| v.name == name }
end

#versionsObject



14
15
16
17
18
# File 'lib/udb/obj/manual.rb', line 14

def versions
  return @versions unless @versions.nil?

  @versions = @arch.manual_versions.select { |mv| mv.manual == self }
end