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
# File 'lib/simpler_navigation/renderers/breadcrumb.rb', line 6

def render
  return "" if @item.nil?

  tags = crumb_tags(@item)

  (:ol, safe_join(tags), @options[:attributes])
end