Class: Avo::Fields::Common::HeadingComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/avo/fields/common/heading_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(value:, as_html:) ⇒ HeadingComponent

Returns a new instance of HeadingComponent.



4
5
6
7
# File 'app/components/avo/fields/common/heading_component.rb', line 4

def initialize(value:, as_html:)
  @value = value
  @as_html = as_html
end