Class: Essence::TitleComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Essence::TitleComponent
- Defined in:
- app/components/essence/title_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#html_options ⇒ Object
readonly
Returns the value of attribute html_options.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, **html_options) ⇒ TitleComponent
constructor
A new instance of TitleComponent.
Methods inherited from ApplicationComponent
#assets_path, assets_path, images_directory
Methods included from Utils
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback
Constructor Details
#initialize(text:, **html_options) ⇒ TitleComponent
Returns a new instance of TitleComponent.
7 8 9 10 |
# File 'app/components/essence/title_component.rb', line 7 def initialize(text:, **) @text = text @html_options = end |
Instance Attribute Details
#html_options ⇒ Object (readonly)
Returns the value of attribute html_options.
5 6 7 |
# File 'app/components/essence/title_component.rb', line 5 def @html_options end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'app/components/essence/title_component.rb', line 5 def text @text end |