Class: LSP::ColorInformation
Overview
export interface ColorInformation
/**
* The range in the document where this color appers.
*/
range: Range;
/**
* The actual color value for this color range.
*/
color: Color;
Instance Attribute Summary collapse
-
#color ⇒ Object
type: Range # type: Color.
-
#range ⇒ Object
type: Range # type: Color.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#color ⇒ Object
type: Range # type: Color
160 161 162 |
# File 'lib/lsp/lsp_types.rb', line 160 def color @color end |
#range ⇒ Object
type: Range # type: Color
160 161 162 |
# File 'lib/lsp/lsp_types.rb', line 160 def range @range end |
Instance Method Details
#from_h!(value) ⇒ Object
162 163 164 165 166 167 |
# File 'lib/lsp/lsp_types.rb', line 162 def from_h!(value) value = {} if value.nil? self.range = Range.new(value['range']) unless value['range'].nil? self.color = Color.new(value['color']) unless value['color'].nil? self end |