Class: Spoom::LSP::Hover
- Inherits:
-
T::Struct
- Object
- T::Struct
- Spoom::LSP::Hover
- Includes:
- PrintableSymbol
- Defined in:
- lib/spoom/sorbet/lsp/structures.rb
Class Method Summary collapse
-
.from_json(json) ⇒ Object
: (Hash[untyped, untyped] json) -> Hover.
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
37 38 39 40 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 37 def accept_printer(printer) printer.print("#{contents}\n") printer.print_object(range) if range end |
#to_s ⇒ Object
: -> String
43 44 45 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 43 def to_s "#{contents} (#{range})." end |