Module: Plushie::App::DefaultCallbacks Private
- Defined in:
- lib/plushie/app.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Default no-op implementations for optional callbacks.
Instance Method Summary collapse
-
#handle_renderer_exit(model, _exit) ⇒ Object
private
Override to handle renderer process exit.
-
#settings ⇒ Object
private
Override to provide application-level settings to the renderer.
-
#subscribe(_model) ⇒ Object
private
Override to return active subscriptions based on the model.
-
#window_config(_model) ⇒ Object
private
Override to configure default window properties.
Instance Method Details
#handle_renderer_exit(model, _exit) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override to handle renderer process exit. Receives a Plushie::RendererExit with type (:crash, :connection_lost, :shutdown, :heartbeat_timeout), message, and optional details. Default: return model unchanged.
79 |
# File 'lib/plushie/app.rb', line 79 def handle_renderer_exit(model, _exit) = model |
#settings ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override to provide application-level settings to the renderer. Default: empty (renderer defaults).
67 |
# File 'lib/plushie/app.rb', line 67 def settings = {} |
#subscribe(_model) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override to return active subscriptions based on the model. Default: no subscriptions.
63 |
# File 'lib/plushie/app.rb', line 63 def subscribe(_model) = [] |
#window_config(_model) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override to configure default window properties. Called when a new window is opened. Per-window props from the tree (title, size, position, etc.) override these defaults. Default: empty (renderer defaults).
73 |
# File 'lib/plushie/app.rb', line 73 def window_config(_model) = {} |