Sha256: 52868dca8c778dffdfb689dd7ec8611f139ade952fa3b6c7da867e0d0baad8f1
Contents?: true
Size: 855 Bytes
Versions: 118
Compression:
Stored size: 855 Bytes
Contents
module LanguageServer module Protocol module Interface class ConfigurationItem def initialize(scope_uri: nil, section: nil) @attributes = {} @attributes[:scopeUri] = scope_uri if scope_uri @attributes[:section] = section if section @attributes.freeze end # # The scope to get the configuration section for. # # @return [string] def scope_uri attributes.fetch(:scopeUri) end # # The configuration section asked for. # # @return [string] def section attributes.fetch(:section) 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