Class: Spoom::LSP::Notification

Inherits:
Message
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Message

#as_json, #to_json

Constructor Details

#initialize(method, params) ⇒ Notification

: (String method, Hash[untyped, untyped] params) -> void



61
62
63
64
65
# File 'lib/spoom/sorbet/lsp/base.rb', line 61

def initialize(method, params)
  super()
  @method = method
  @params = params
end

Instance Attribute Details

#method ⇒ Object (readonly)

: String



55
56
57
# File 'lib/spoom/sorbet/lsp/base.rb', line 55

def method
  @method
end

#params ⇒ Object (readonly)

: Hash[untyped, untyped]



58
59
60
# File 'lib/spoom/sorbet/lsp/base.rb', line 58

def params
  @params
end