Sha256: f0a72146dc977375f173e4bbb87e6c5c07fc299ba5e49be5d591b2756277f84f

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class TextDocumentIdentifier
        def initialize(uri:)
          @attributes = {}

          @attributes[:uri] = uri

          @attributes.freeze
        end

        #
        # The text document's URI.
        #
        # @return [string]
        def uri
          attributes.fetch(:uri)
        end

        attr_reader :attributes

        def to_json(*args)
          attributes.to_json(*args)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/text_document_identifier.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/text_document_identifier.rb