Class: HeadingComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/alveole/components/heading_component.rb

Instance Method Summary collapse

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