Class: Koi::HeaderComponent::LinkComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Koi::HeaderComponent::LinkComponent
- Defined in:
- app/components/koi/header_component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(name, path, **options) ⇒ LinkComponent
constructor
A new instance of LinkComponent.
Constructor Details
#initialize(name, path, **options) ⇒ LinkComponent
Returns a new instance of LinkComponent.
15 16 17 18 19 20 21 |
# File 'app/components/koi/header_component.rb', line 15 def initialize(name, path, **) super @name = name @path = path @options = end |
Instance Method Details
#call ⇒ Object
23 24 25 |
# File 'app/components/koi/header_component.rb', line 23 def call link_to @name, @path, **@options end |