Class: SimplerNavigation::Renderers::Breadcrumb

Inherits:
Base
  • Object
show all
Defined in:
lib/simpler_navigation/renderers/breadcrumb.rb

Instance Attribute Summary

Attributes inherited from Base

#context, #item, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SimplerNavigation::Renderers::Base

Instance Method Details

#renderObject



6
7
8
9
10
11
12
13
# File 'lib/simpler_navigation/renderers/breadcrumb.rb', line 6

def render
  return "" if @item.nil?

  tags = crumb_tags(@item)

  join_with = @options[:join_with] || " "
  (:div, safe_join(tags, join_with), @options[:attributes])
end