Class: Panda::Core::Shared::HeaderComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Panda::Core::Shared::HeaderComponent
- Defined in:
- app/components/panda/core/shared/header_component.rb
Overview
Header component for HTML document head Handles title, meta tags, stylesheets, and JavaScript
Instance Attribute Summary collapse
-
#body_class ⇒ Object
readonly
Returns the value of attribute body_class.
-
#html_class ⇒ Object
readonly
Returns the value of attribute html_class.
Instance Method Summary collapse
-
#initialize(html_class: "", body_class: "", **attrs) ⇒ HeaderComponent
constructor
A new instance of HeaderComponent.
Constructor Details
#initialize(html_class: "", body_class: "", **attrs) ⇒ HeaderComponent
Returns a new instance of HeaderComponent.
9 10 11 12 13 |
# File 'app/components/panda/core/shared/header_component.rb', line 9 def initialize(html_class: "", body_class: "", **attrs) super() @html_class = html_class @body_class = body_class end |
Instance Attribute Details
#body_class ⇒ Object (readonly)
Returns the value of attribute body_class.
15 16 17 |
# File 'app/components/panda/core/shared/header_component.rb', line 15 def body_class @body_class end |
#html_class ⇒ Object (readonly)
Returns the value of attribute html_class.
15 16 17 |
# File 'app/components/panda/core/shared/header_component.rb', line 15 def html_class @html_class end |