| Class | Ronn::Reference |
| In: |
lib/ronn/index.rb
|
| Parent: | Object |
An individual index reference. A reference can point to one of a few types of locations:
- URLs: "http://man.cx/crontab(5)" - Relative paths to ronn manuals: "crontab.5.ronn"
The url method should be used to obtain the href value for HTML.
| location | [R] | |
| name | [R] |
# File lib/ronn/index.rb, line 149
149: def initialize(index, name, location)
150: @index = index
151: @name = name
152: @location = location
153: end
# File lib/ronn/index.rb, line 179
179: def path
180: File.expand_path(location, File.dirname(@index.path)) if relative?
181: end