class Spoom::LSP::Hover
Public Class Methods
from_json(json)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 25 def self.from_json(json) Hover.new( contents: json['contents']['value'], range: json['range'] ? Range.from_json(json['range']) : nil ) end
Public Instance Methods
accept_printer(printer)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 33 def accept_printer(printer) printer.print("#{contents}\n") printer.print_object(range) if range end
to_s()
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 38 def to_s "#{contents} (#{range})." end