Class: Spoom::LSP::Notification
- Defined in:
- lib/spoom/sorbet/lsp/base.rb
Overview
A notification message.
A processed notification message must not send a response back. They work like events.
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
: String.
-
#params ⇒ Object
readonly
: Hash[untyped, untyped].
Instance Method Summary collapse
-
#initialize(method, params) ⇒ Notification
constructor
: (String method, Hash[untyped, untyped] params) -> void.
Methods inherited from Message
Constructor Details
#initialize(method, params) ⇒ Notification
: (String method, Hash[untyped, untyped] params) -> void
62 63 64 65 66 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 62 def initialize(method, params) super() @method = method @params = params end |
Instance Attribute Details
#method ⇒ Object (readonly)
: String
56 57 58 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 56 def method @method end |
#params ⇒ Object (readonly)
: Hash[untyped, untyped]
59 60 61 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 59 def params @params end |