class Spoom::LSP::Range

Public Class Methods

from_json(json) click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 74
def self.from_json(json)
  Range.new(
    start: Position.from_json(json['start']),
    end: Position.from_json(json['end'])
  )
end

Public Instance Methods

accept_printer(printer) click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 82
def accept_printer(printer)
  printer.print_object(start)
  printer.print_colored("-", :light_black)
  printer.print_object(self.end)
end
to_s() click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 88
def to_s
  "#{start}-#{self.end}"
end