Class: Rooibos::Message::Open
- Inherits:
-
Object
- Object
- Rooibos::Message::Open
- Includes:
- Predicates
- Defined in:
- lib/rooibos/message/open.rb
Overview
Signals that a file or URL was successfully opened.
This message arrives after Command.open completes with exit status 0. Non-zero exits produce Message::Error instead.
Pattern Matching
case
in { type: :open, envelope: path }
model.with(status: "Opened #{path}")
end
Instance Method Summary collapse
Methods included from Predicates
#==, #method_missing, #respond_to_missing?, #to_sym
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rooibos::Message::Predicates
Instance Method Details
#deconstruct_keys(_keys) ⇒ Object
25 26 27 |
# File 'lib/rooibos/message/open.rb', line 25 def deconstruct_keys(_keys) { type: :open, envelope: } end |