Object
# File typeprof-0.21.1/lib/typeprof/lsp.rb, line 797 def initialize(io) @io = io end
# File typeprof-0.21.1/lib/typeprof/lsp.rb, line 801 def write(**json) json = JSON.generate(json.merge(jsonrpc: "2.0")) @io << "Content-Length: #{ json.bytesize }\r\n\r\n" << json @io.flush end
This page was generated for Ruby 3.1.0
Ruby-doc.org is a service of James Britt and Neurogami, purveyors of fine dance noise.
Generated with Ruby-doc Rdoc Generator 0.42.0.