Class: Protos::Breadcrumbs
- Defined in:
- lib/protos/breadcrumbs.rb,
lib/protos/breadcrumbs/crumb.rb
Defined Under Namespace
Classes: Crumb
Instance Method Summary collapse
- #crumb ⇒ Object
-
#view_template(&block) ⇒ Object
DOCS: A list of breadcrumbs (e.g links) for navigation daisyui.com/components/breadcrumbs/.
Methods inherited from Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#crumb ⇒ Object
14 |
# File 'lib/protos/breadcrumbs.rb', line 14 def crumb(...) = render Crumb.new(...) |
#view_template(&block) ⇒ Object
DOCS: A list of breadcrumbs (e.g links) for navigation daisyui.com/components/breadcrumbs/
8 9 10 11 12 |
# File 'lib/protos/breadcrumbs.rb', line 8 def view_template(&block) nav(**attrs) do ul(class: css[:list], &block) end end |