Class: Lsp::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/lsp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rangeObject

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



39
40
41
# File 'lib/lsp.rb', line 39

def range
  @range
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



39
40
41
# File 'lib/lsp.rb', line 39

def uri
  @uri
end

Instance Method Details

#to_hObject



40
41
42
43
44
45
# File 'lib/lsp.rb', line 40

def to_h
  {
    uri: uri,
    range: range.to_h,
  }
end