Class: Avo::Fields::Common::HeadingComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Avo::Fields::Common::HeadingComponent
- Defined in:
- app/components/avo/fields/common/heading_component.rb
Instance Attribute Summary collapse
-
#as_html ⇒ Object
readonly
Returns the value of attribute as_html.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, as_html:) ⇒ HeadingComponent
constructor
A new instance of HeadingComponent.
Constructor Details
#initialize(value:, as_html:) ⇒ HeadingComponent
Returns a new instance of HeadingComponent.
7 8 9 10 |
# File 'app/components/avo/fields/common/heading_component.rb', line 7 def initialize(value:, as_html:) @value = value @as_html = as_html end |
Instance Attribute Details
#as_html ⇒ Object (readonly)
Returns the value of attribute as_html.
5 6 7 |
# File 'app/components/avo/fields/common/heading_component.rb', line 5 def as_html @as_html end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'app/components/avo/fields/common/heading_component.rb', line 4 def value @value end |