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.



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

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



13
14
15
# File 'lib/ruby_lsp/utils.rb', line 13

def message
  @message
end

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end