Class: Practical::Views::Form::ErrorListComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Practical::Views::Form::ErrorListComponent
- Defined in:
- app/components/practical/views/form/error_list_component.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(errors:) ⇒ ErrorListComponent
constructor
A new instance of ErrorListComponent.
Constructor Details
#initialize(errors:) ⇒ ErrorListComponent
Returns a new instance of ErrorListComponent.
6 7 8 |
# File 'app/components/practical/views/form/error_list_component.rb', line 6 def initialize(errors:) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'app/components/practical/views/form/error_list_component.rb', line 4 def errors @errors end |