Class: Jekyll::WikiLinks::LinkIndex::DocLinks
- Inherits:
-
Object
- Object
- Jekyll::WikiLinks::LinkIndex::DocLinks
- Defined in:
- lib/jekyll-wikilinks/util/link_index.rb
Overview
def remove_baseurl(url)
return url.gsub(@baseurl, '') if !@baseurl.nil?
return url
end
Instance Attribute Summary collapse
-
#attributed ⇒ Object
Returns the value of attribute attributed.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#backlinks ⇒ Object
Returns the value of attribute backlinks.
-
#forelinks ⇒ Object
Returns the value of attribute forelinks.
-
#missing ⇒ Object
Returns the value of attribute missing.
Instance Method Summary collapse
-
#initialize ⇒ DocLinks
constructor
A new instance of DocLinks.
Constructor Details
#initialize ⇒ DocLinks
Returns a new instance of DocLinks.
88 89 90 91 92 93 94 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 88 def initialize @attributed = [] # block typed backlinks; { 'type' => str, 'urls' => [ str ] } @attributes = [] # block typed forelinks; { 'type' => str, 'urls' => [ str ] } @backlinks = [] # inline typed and basic backlinks; { 'type' => str, 'url' => str } @forelinks = [] # inline typed and basic forelinks; { 'type' => str, 'url' => str } @missing = [] # missing forelinks + attributes; ( built from (missing) filenames ) end |
Instance Attribute Details
#attributed ⇒ Object
Returns the value of attribute attributed.
86 87 88 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 86 def attributed @attributed end |
#attributes ⇒ Object
Returns the value of attribute attributes.
86 87 88 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 86 def attributes @attributes end |
#backlinks ⇒ Object
Returns the value of attribute backlinks.
86 87 88 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 86 def backlinks @backlinks end |
#forelinks ⇒ Object
Returns the value of attribute forelinks.
86 87 88 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 86 def forelinks @forelinks end |
#missing ⇒ Object
Returns the value of attribute missing.
86 87 88 |
# File 'lib/jekyll-wikilinks/util/link_index.rb', line 86 def missing @missing end |