Class: Layout::ModalErrorComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Layout::ModalErrorComponent
- Defined in:
- app/components/layout/modal_error_component.rb
Instance Method Summary collapse
-
#initialize(obj: nil, body: nil) ⇒ ModalErrorComponent
constructor
A new instance of ModalErrorComponent.
Constructor Details
#initialize(obj: nil, body: nil) ⇒ ModalErrorComponent
Returns a new instance of ModalErrorComponent.
4 5 6 7 8 |
# File 'app/components/layout/modal_error_component.rb', line 4 def initialize(obj: nil, body: nil) super @obj = obj @body = body end |