Class: JetUi::Navbar::Component
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Navbar::Component
- Defined in:
- app/components/jet_ui/navbar/component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(sticky: true, **options) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(sticky: true, **options) ⇒ Component
Returns a new instance of Component.
6 7 8 9 |
# File 'app/components/jet_ui/navbar/component.rb', line 6 def initialize(sticky: true, **) @sticky = sticky @options = end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'app/components/jet_ui/navbar/component.rb', line 11 def call content_tag(:header, content, class: classes, **@options.except(:class)) end |