Class: Solargraph::LanguageServer::Request
- Inherits:
-
Object
- Object
- Solargraph::LanguageServer::Request
- Defined in:
- lib/solargraph/language_server/request.rb
Instance Method Summary collapse
-
#initialize(id, &block) ⇒ Request
constructor
A new instance of Request.
- #process(result) ⇒ void
- #send_response ⇒ Object
Constructor Details
#initialize(id, &block) ⇒ Request
Returns a new instance of Request.
8 9 10 11 |
# File 'lib/solargraph/language_server/request.rb', line 8 def initialize id, &block @id = id @block = block end |
Instance Method Details
#process(result) ⇒ void
This method returns an undefined value.
15 16 17 |
# File 'lib/solargraph/language_server/request.rb', line 15 def process result @block.call(result) unless @block.nil? end |
#send_response ⇒ Object
19 20 21 |
# File 'lib/solargraph/language_server/request.rb', line 19 def send_response # noop end |