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.
17 18 19 20 21 22 23 |
# File 'app/components/koi/header_component.rb', line 17 def initialize(name, path, **) super() @name = name @path = path = end |
Instance Method Details
#call ⇒ Object
25 26 27 |
# File 'app/components/koi/header_component.rb', line 25 def call link_to @name, @path, ** end |