class Spoom::LSP::Position
Public Class Methods
from_json(json)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 50 def self.from_json(json) Position.new( line: json['line'].to_i, char: json['character'].to_i ) end
Public Instance Methods
accept_printer(printer)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 58 def accept_printer(printer) printer.print_colored("#{line}:#{char}", :light_black) end
to_s()
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 62 def to_s "#{line}:#{char}" end