Class: Practical::Views::Form::FieldsetTitleComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Practical::Views::Form::FieldsetTitleComponent
- Defined in:
- app/components/practical/views/form/fieldset_title_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options: {}) ⇒ FieldsetTitleComponent
constructor
A new instance of FieldsetTitleComponent.
Constructor Details
#initialize(options: {}) ⇒ FieldsetTitleComponent
Returns a new instance of FieldsetTitleComponent.
7 8 9 |
# File 'app/components/practical/views/form/fieldset_title_component.rb', line 7 def initialize(options: {}) self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'app/components/practical/views/form/fieldset_title_component.rb', line 4 def @options end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'app/components/practical/views/form/fieldset_title_component.rb', line 11 def call tag.span(**mix({}, )) { safe_join([ (icon if icon?), " ", tag.span{ content } ]) } end |