Module: Skyline::Linkable
- Defined in:
- lib/skyline/linkable.rb
Overview
If included the object will be linkable currently only works on Articles
Class Method Summary collapse
Instance Method Summary collapse
-
#url ⇒ Object
abstract
The URL this linkable can be found on.
Class Method Details
.linkables ⇒ Object
6 7 8 |
# File 'lib/skyline/linkable.rb', line 6 def linkables Skyline::Configuration.articles.select{|c| c < Skyline::Linkable } end |
Instance Method Details
#url ⇒ Object
This method is abstract.
Implement in subclass
The URL this linkable can be found on. Needed to create the link
24 25 26 |
# File 'lib/skyline/linkable.rb', line 24 def url raise "Implement in subclass" end |