class Rooibos::Command::Bubble
Carries a message outward through the fragment hierarchy.
Nested fragments produce signals. Outer fragments consume them. Passing callbacks down the tree couples fragments tightly. Direct references make reuse difficult.
This command wraps a message for bubbling. Outer fragments intercept it and decide how to handle it. With the Router DSL, use observe or intercept. Without the Router, check for Command::Bubble manually and extract the message. Unhandled bubbles can be re-returned to continue propagation outward.
The runtime does not execute this command. Outer fragments handle it. Calling call raises an error.
- message
-
The payload to propagate outward.
Public Instance Methods
Source
# File lib/rooibos/command/bubble.rb, line 31 def call(_out, _token) = nil end
No-op: unhandled bubbles that escape the Router hierarchy( when no fragment intercepts the message) are silently dropped.