Class: Spoom::LSP::Notification
- Extended by:
- T::Sig
- 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
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(method, params) ⇒ Notification
constructor
A new instance of Notification.
Methods inherited from Message
Constructor Details
#initialize(method, params) ⇒ Notification
Returns a new instance of Notification.
68 69 70 71 72 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 68 def initialize(method, params) super() @method = method @params = params end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
62 63 64 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 62 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
65 66 67 |
# File 'lib/spoom/sorbet/lsp/base.rb', line 65 def params @params end |