Sha256: a5f728ad30d31c726c5508e122c98266b095a2c8fab1fbb37cc6f9ec105d655a

Contents?: true

Size: 650 Bytes

Versions: 102

Compression:

Stored size: 650 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # A literal to identify a notebook document in the client.
      #
      class NotebookDocumentIdentifier
        def initialize(uri:)
          @attributes = {}

          @attributes[:uri] = uri

          @attributes.freeze
        end

        #
        # The notebook document's URI.
        #
        # @return [string]
        def uri
          attributes.fetch(:uri)
        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

102 entries across 102 versions & 12 rubygems

Version Path
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/notebook_document_identifier.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/notebook_document_identifier.rb