Class: SimpleNavigation::Renderer::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/simple_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

#adapter, #options

Instance Method Summary collapse

Methods inherited from Base

#expand_all?, #include_sub_navigation?, #initialize, #level, #render_sub_navigation_for, #skip_if_empty?

Constructor Details

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

Instance Method Details

#render(item_container) ⇒ Object



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

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