Class: RocketNavigation::Renderer::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/rocket_navigation/renderer/text.rb

Overview

Renders the ‘chain’ of selected navigation items as simple text items, joined with an optional separator (similar to breadcrumbs, but without markup).

Instance Attribute Summary

Attributes inherited from Base

#container, #options

Instance Method Summary collapse

Methods inherited from Base

#active_tag_for, #base_item_html, #base_link_html, #consider_sub_navigation?, #container_html, #container_options, #expand_all?, #expand_sub_navigation?, #include_sub_navigation?, #initialize, #item_html, #item_options, #level, #link_html, #link_options, #render_sub_navigation_for, #selected_class, #skip_if_empty?, #suppress_link?, #suppressed_tag_for, #tag_for

Constructor Details

This class inherits a constructor from RocketNavigation::Renderer::Base

Instance Method Details

#render(item_container) ⇒ Object



7
8
9
# File 'lib/rocket_navigation/renderer/text.rb', line 7

def render(item_container)
  list(item_container).compact.join(options[:join_with] || ' ')
end