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