Class: Udb::Manual
- Inherits:
-
TopLevelDatabaseObject
- Object
- DatabaseObject
- TopLevelDatabaseObject
- Udb::Manual
- Defined in:
- lib/udb/obj/manual.rb
Instance Method Summary collapse
-
#marketing_name ⇒ String
The title of the manual, as used by marketing.
-
#repo_path=(path) ⇒ Object
for manuals that reference an external repo, set the url to that repo data (file path).
- #version(name) ⇒ Object
- #versions ⇒ Object
Constructor Details
This class inherits a constructor from Udb::TopLevelDatabaseObject
Instance Method Details
#marketing_name ⇒ String
Returns The title of the manual, as used by marketing.
24 |
# File 'lib/udb/obj/manual.rb', line 24 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)
27 28 29 30 |
# File 'lib/udb/obj/manual.rb', line 27 def repo_path=(path) @repo_path = Pathname.new(path) versions.each { |v| v.repo_path = @repo_path } end |
#version(name) ⇒ Object
19 20 21 |
# File 'lib/udb/obj/manual.rb', line 19 def version(name) versions.find { |v| v.name == name } end |
#versions ⇒ Object
13 14 15 16 17 |
# File 'lib/udb/obj/manual.rb', line 13 def versions return @versions unless @versions.nil? @versions = @arch.manual_versions.select { |mv| mv.manual == self } end |