Module: Plushie::Event::Effect
- Defined in:
- sig/plushie/event.rbs
Overview
Typed per-kind result variants. Each is a Data.define class so
apps can pattern-match on the class with case/in. Matches the
Rust SDK's EffectResult enum.
Constant Summary collapse
- FileOpened =
- FilesOpened =
- FileSaved =
- DirectorySelected =
- DirectoriesSelected =
- ClipboardText =
- ClipboardHtml =
- ClipboardWritten =
- ClipboardCleared =
- NotificationShown =
- Cancelled =
- Timeout =
- Error =
- Unsupported =
- RendererRestarted =
Class Method Summary collapse
- .decode ⇒ Object
- .decode_ok ⇒ Object
- .fetch_optional_string ⇒ String?
- .fetch_paths ⇒ Array[String]
- .fetch_string ⇒ String
Class Method Details
.decode ⇒ Object
131 |
# File 'sig/plushie/event.rbs', line 131
def self.decode: (String kind, String status, untyped payload) -> untyped
|
.decode_ok ⇒ Object
132 |
# File 'sig/plushie/event.rbs', line 132
def self.decode_ok: (String kind, Hash[untyped, untyped] payload) -> untyped
|
.fetch_optional_string ⇒ String?
134 |
# File 'sig/plushie/event.rbs', line 134
def self.fetch_optional_string: (Hash[untyped, untyped] hash, Symbol key) -> String?
|
.fetch_paths ⇒ Array[String]
135 |
# File 'sig/plushie/event.rbs', line 135
def self.fetch_paths: (Hash[untyped, untyped] hash, Symbol key) -> Array[String]
|
.fetch_string ⇒ String
133 |
# File 'sig/plushie/event.rbs', line 133
def self.fetch_string: (Hash[untyped, untyped] hash, Symbol key) -> String
|