# frozen_string_literal: true module Buoys module Helper # Declare the breadcrumb which want to render in view. # # <%= buoy :help, true %> def buoy(key, *args) @_buoys_renderer = Buoys::Renderer.new(self, key, *args) end alias breadcrumb buoy # <% buoys.tap do |links| %> # <% if links.any? %> # # <% end %> # <% end %> def buoys buoys_renderer.render end alias breadcrumbs buoys def buoys_renderer @_buoys_renderer ||= Buoys::Renderer.new(self, nil) # rubocop:disable Naming/MemoizedInstanceVariableName end end end