Class: Spoom::LSP::Range
- Inherits:
-
T::Struct
- Object
- T::Struct
- Spoom::LSP::Range
- Includes:
- PrintableSymbol
- Defined in:
- lib/spoom/sorbet/lsp/structures.rb
Class Method Summary collapse
-
.from_json(json) ⇒ Object
: (Hash[untyped, untyped] json) -> Range.
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
94 95 96 97 98 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 94 def accept_printer(printer) printer.print_object(start) printer.print_colored("-", Color::LIGHT_BLACK) printer.print_object(self.end) end |
#to_s ⇒ Object
: -> String
101 102 103 |
# File 'lib/spoom/sorbet/lsp/structures.rb', line 101 def to_s "#{start}-#{self.end}" end |