Class: Webgen::PathHandler::Sitemap::Node

Inherits:
PageUtils::Node show all
Defined in:
lib/webgen/path_handler/sitemap.rb

Overview

Provides custom methods for sitemap nodes.

Instance Attribute Summary

Attributes inherited from Node

#acn, #alcn, #children, #cn, #dest_path, #lang, #lcn, #level, #meta_info, #node_info, #parent, #tree

Instance Method Summary collapse

Methods inherited from PageUtils::Node

#blocks, #render_block, #template_chain

Methods inherited from Base::Node

#content, #link_to, #route_to, #url

Methods inherited from Node

#=~, #[], #initialize, #inspect, #is_ancestor_of?, #is_directory?, #is_file?, #is_fragment?, #is_root?, #link_to, #proxy_node, #resolve, #route_to, #to_s, #versions

Constructor Details

This class inherits a constructor from Webgen::Node

Instance Method Details

#sitemap_entriesObject

Return the entries for the sitemap node.



23
24
25
# File 'lib/webgen/path_handler/sitemap.rb', line 23

def sitemap_entries
  tree.website.ext.node_finder.find(node_info[:entries], self)
end