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



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

def end
  @end
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



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

def start
  @start
end

Instance Method Details

#to_hObject



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

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