Class: RubyLsp::Message Abstract
- Inherits:
-
Object
- Object
- RubyLsp::Message
- Defined in:
- lib/ruby_lsp/utils.rb
Overview
This class is abstract.
A notification to be sent to the client
Direct Known Subclasses
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
: String.
-
#params ⇒ Object
readonly
: Object.
Instance Method Summary collapse
-
#initialize(method:, params:) ⇒ Message
constructor
: (method: String, params: Object) -> void.
-
#to_hash ⇒ Object
abstract
: -> Hash[Symbol, untyped].
Constructor Details
#initialize(method:, params:) ⇒ Message
: (method: String, params: Object) -> void
48 49 50 51 |
# File 'lib/ruby_lsp/utils.rb', line 48 def initialize(method:, params:) @method = method @params = params end |
Instance Attribute Details
#method ⇒ Object (readonly)
: String
42 43 44 |
# File 'lib/ruby_lsp/utils.rb', line 42 def method @method end |
#params ⇒ Object (readonly)
: Object
45 46 47 |
# File 'lib/ruby_lsp/utils.rb', line 45 def params @params end |
Instance Method Details
#to_hash ⇒ Object
This method is abstract.
: -> Hash[Symbol, untyped]
55 56 57 |
# File 'lib/ruby_lsp/utils.rb', line 55 def to_hash raise AbstractMethodInvokedError end |