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

Class Method Details

.linkablesObject



6
7
8
# File 'lib/skyline/linkable.rb', line 6

def linkables
  Skyline::Configuration.articles.select{|c| c < Skyline::Linkable }
end

Instance Method Details

#urlObject

This method is abstract.

Implement in subclass

The URL this linkable can be found on. Needed to create the link

Returns:

  • String The URL



24
25
26
# File 'lib/skyline/linkable.rb', line 24

def url
  raise "Implement in subclass"
end