Class: RubyLsp::Message
- Inherits:
-
Object
- Object
- RubyLsp::Message
- 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
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:) ⇒ Message
constructor
A new instance of Message.
- #to_hash ⇒ Object
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
#method ⇒ Object (readonly)
Returns the value of attribute method.
36 37 38 |
# File 'lib/ruby_lsp/utils.rb', line 36 def method @method end |
#params ⇒ Object (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_hash ⇒ Object
50 |
# File 'lib/ruby_lsp/utils.rb', line 50 def to_hash; end |