Class: RubyLsp::Result
- Inherits:
-
Object
- Object
- RubyLsp::Result
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_lsp/utils.rb
Overview
The final result of running a request before its IO is finalized
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response:, error: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(response:, error: nil) ⇒ Result
Returns a new instance of Result.
50 51 52 53 |
# File 'lib/ruby_lsp/utils.rb', line 50 def initialize(response:, error: nil) @response = response @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
47 48 49 |
# File 'lib/ruby_lsp/utils.rb', line 47 def error @error end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
44 45 46 |
# File 'lib/ruby_lsp/utils.rb', line 44 def response @response end |