Class: RubyLsp::Notification

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_lsp/utils.rb

Overview

A notification to be sent to the client

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, params:) ⇒ Notification

Returns a new instance of Notification.



22
23
24
25
# File 'lib/ruby_lsp/utils.rb', line 22

def initialize(message:, params:)
  @message = message
  @params = params
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



16
17
18
# File 'lib/ruby_lsp/utils.rb', line 16

def message
  @message
end

#paramsObject (readonly)

Returns the value of attribute params.



19
20
21
# File 'lib/ruby_lsp/utils.rb', line 19

def params
  @params
end