Class: Lsp::Range

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endObject

Returns the value of attribute end

Returns:

  • (Object)

    the current value of end



31
32
33
# File 'lib/lsp.rb', line 31

def end
  @end
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



31
32
33
# File 'lib/lsp.rb', line 31

def start
  @start
end

Instance Method Details

#to_hObject



32
33
34
35
36
37
# File 'lib/lsp.rb', line 32

def to_h
  {
    start: start.to_h,
    end: self.end.to_h,
  }
end