Class: Deplate::HyperLink::ExtendedLinkMap

Inherits:
Extended
  • Object
show all
Defined in:
lib/deplate/mod/linkmap.rb

Overview

access a mapped link using extended hyperlink

[link_key]
[link_key][link name]

Instance Method Summary collapse

Instance Method Details

#processObject



114
115
116
117
118
119
# File 'lib/deplate/mod/linkmap.rb', line 114

def process
    # use url from map if found for this source
    link_url = Deplate::LinkMap.get(@current_source_id, @dest)
    @dest = link_url if link_url
    super
end

#setupObject



108
109
110
111
112
# File 'lib/deplate/mod/linkmap.rb', line 108

def setup
    # save id for this source since it will change by the time we process
    @current_source_id = @deplate.current_source.object_id
    super
end