Class: HeadingComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- HeadingComponent
- Defined in:
- lib/alveole/components/heading_component.rb
Instance Method Summary collapse
-
#initialize(heading: nil, sub: nil) ⇒ HeadingComponent
constructor
A new instance of HeadingComponent.
Constructor Details
#initialize(heading: nil, sub: nil) ⇒ HeadingComponent
Returns a new instance of HeadingComponent.
2 3 4 5 6 7 |
# File 'lib/alveole/components/heading_component.rb', line 2 def initialize(heading: nil, sub: nil) super @heading = heading @sub = sub end |