Class: Hyphae::SiteLink
Overview
A SiteLink represents an arbitrary link
Instance Attribute Summary
Attributes inherited from SiteNode
#date, #name, #order, #parent, #path, #slug
Instance Method Summary collapse
-
#build(build_dir, template, options = {}) ⇒ Object
Builds html page (does nothing for a link).
-
#initialize(filename, parent) ⇒ SiteLink
constructor
A new instance of SiteLink.
-
#nav_link(open_path = [], options = {}) ⇒ Object
Builds the nav menu tag for this page.
Methods inherited from SiteNode
Constructor Details
#initialize(filename, parent) ⇒ SiteLink
Returns a new instance of SiteLink.
151 152 153 154 |
# File 'lib/hyphae.rb', line 151 def initialize(filename, parent) super @link = File.read(filename).strip end |
Instance Method Details
#build(build_dir, template, options = {}) ⇒ Object
Builds html page (does nothing for a link)
164 165 |
# File 'lib/hyphae.rb', line 164 def build(build_dir, template, ={}) end |