Class: Jekyll::WikiRefs::LinkIndex::DocLinks

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll-wikirefs/util/link_index.rb

Overview

def remove_baseurl(url)

return url.gsub(@baseurl, '') if !@baseurl.nil?
return url

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocLinks

Returns a new instance of DocLinks.



88
89
90
91
92
93
94
# File 'lib/jekyll-wikirefs/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

#attributedObject

Returns the value of attribute attributed.



86
87
88
# File 'lib/jekyll-wikirefs/util/link_index.rb', line 86

def attributed
  @attributed
end

#attributesObject

Returns the value of attribute attributes.



86
87
88
# File 'lib/jekyll-wikirefs/util/link_index.rb', line 86

def attributes
  @attributes
end

Returns the value of attribute backlinks.



86
87
88
# File 'lib/jekyll-wikirefs/util/link_index.rb', line 86

def backlinks
  @backlinks
end

Returns the value of attribute forelinks.



86
87
88
# File 'lib/jekyll-wikirefs/util/link_index.rb', line 86

def forelinks
  @forelinks
end

#missingObject

Returns the value of attribute missing.



86
87
88
# File 'lib/jekyll-wikirefs/util/link_index.rb', line 86

def missing
  @missing
end