Class: Spoom::LSP::Location
- Inherits:
-
T::Struct
- Object
- T::Struct
- Spoom::LSP::Location
- Includes:
- PrintableSymbol
- Defined in:
- lib/spoom/sorbet/lsp/structures.rb
Class Method Summary collapse
-
.from_json(json) ⇒ Object
: (Hash[untyped, untyped] json) -> Location.
Instance Method Summary collapse
-
#accept_printer(printer) ⇒ Object
: (SymbolPrinter printer) -> void.
-
#to_s ⇒ Object
: -> String.
Class Method Details
Instance Method Details
#accept_printer(printer) ⇒ Object
: (SymbolPrinter printer) -> void
124 125 126 127 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 124 def accept_printer(printer) printer.print_colored("#{printer.clean_uri(uri)}:", Color::LIGHT_BLACK) printer.print_object(range) end |
#to_s ⇒ Object
: -> String
130 131 132 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 130 def to_s "#{uri}:#{range}" end |