class Spoom::LSP::Location
Public Class Methods
from_json(json)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 100 def self.from_json(json) Location.new( uri: json['uri'], range: Range.from_json(json['range']) ) end
Public Instance Methods
accept_printer(printer)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 108 def accept_printer(printer) printer.print_colored("#{printer.clean_uri(uri)}:", :light_black) printer.print_object(range) end
to_s()
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 113 def to_s "#{uri}:#{range}" end