Class: RubyLsp::Message

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

Overview

A notification to be sent to the client

Direct Known Subclasses

Notification, Request

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method:, params:) ⇒ Message

Returns a new instance of Message.



44
45
46
47
# File 'lib/ruby_lsp/utils.rb', line 44

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

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



36
37
38
# File 'lib/ruby_lsp/utils.rb', line 36

def method
  @method
end

#paramsObject (readonly)

Returns the value of attribute params.



39
40
41
# File 'lib/ruby_lsp/utils.rb', line 39

def params
  @params
end

Instance Method Details

#to_hashObject



50
# File 'lib/ruby_lsp/utils.rb', line 50

def to_hash; end