Class: Middleman::Navigation::ResourceListManipulator

Inherits:
Object
  • Object
show all
Defined in:
lib/middleman-navigation/resource_list_manipulator.rb

Instance Method Summary collapse

Constructor Details

#initialize(sitemap) ⇒ ResourceListManipulator

Returns a new instance of ResourceListManipulator.



4
5
6
# File 'lib/middleman-navigation/resource_list_manipulator.rb', line 4

def initialize(sitemap)
  @sitemap = sitemap
end

Instance Method Details

#manipulate_resource_list(resources) ⇒ Object



7
8
9
10
# File 'lib/middleman-navigation/resource_list_manipulator.rb', line 7

def manipulate_resource_list(resources)
  Tree.build @sitemap
  resources
end