Class: LSP::Range
Overview
export interface Range
/**
* The range's start position
*/
start: Position;
/**
* The range's end position.
*/
end: Position;
Instance Attribute Summary collapse
-
#end ⇒ Object
type: Position # type: Position.
-
#start ⇒ Object
type: Position # type: Position.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#end ⇒ Object
type: Position # type: Position
51 52 53 |
# File 'lib/lsp/lsp_types.rb', line 51 def end @end end |
#start ⇒ Object
type: Position # type: Position
51 52 53 |
# File 'lib/lsp/lsp_types.rb', line 51 def start @start end |
Instance Method Details
#from_h!(value) ⇒ Object
53 54 55 56 57 58 |
# File 'lib/lsp/lsp_types.rb', line 53 def from_h!(value) value = {} if value.nil? self.start = Position.new(value['start']) unless value['start'].nil? self.end = Position.new(value['end']) unless value['end'].nil? self end |