Sha256: 72d737fc368f136ee05e87b6a232e17c2d731a41d2b5c1d4e17e8553683e2215
Contents?: true
Size: 804 Bytes
Versions: 118
Compression:
Stored size: 804 Bytes
Contents
module LanguageServer module Protocol module Interface class ColorInformation def initialize(range:, color:) @attributes = {} @attributes[:range] = range @attributes[:color] = color @attributes.freeze end # # The range in the document where this color appears. # # @return [Range] def range attributes.fetch(:range) end # # The actual color value for this color range. # # @return [Color] def color attributes.fetch(:color) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
118 entries across 118 versions & 15 rubygems