Method: Primer::Beta::Breadcrumbs::Item#initialize
- Defined in:
- app/components/primer/beta/breadcrumbs.rb
permalink #initialize(href:, target: "_self", **system_arguments) ⇒ Item
Returns a new instance of Item.
51 52 53 54 55 56 57 58 59 |
# File 'app/components/primer/beta/breadcrumbs.rb', line 51 def initialize(href:, target: "_self", **system_arguments) @href = href @target = target @system_arguments = deny_tag_argument(**system_arguments) @selected = false @system_arguments[:tag] = :li @system_arguments[:classes] = "breadcrumb-item #{@system_arguments[:classes]}" end |