Sha256: 437dc91d9eff91d0ae0c30c38f75dfb949e8cd4c10570afc80a324787cbb3000
Contents?: true
Size: 890 Bytes
Versions: 107
Compression:
Stored size: 890 Bytes
Contents
module LanguageServer module Protocol module Interface class SelectionRange def initialize(range:, parent: nil) @attributes = {} @attributes[:range] = range @attributes[:parent] = parent if parent @attributes.freeze end # # The [range](#Range) of this selection range. # # @return [Range] def range attributes.fetch(:range) end # # The parent selection range containing this range. Therefore # `parent.range` must contain `this.range`. # # @return [SelectionRange] def parent attributes.fetch(:parent) 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
107 entries across 107 versions & 13 rubygems