Sha256: 3416c761983e81efbdfa46b430aaf03af8817b94a26b2424ca4c512d564e1a1f

Contents?: true

Size: 751 Bytes

Versions: 104

Compression:

Stored size: 751 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # The params sent in a save notebook document notification.
      #
      class DidSaveNotebookDocumentParams
        def initialize(notebook_document:)
          @attributes = {}

          @attributes[:notebookDocument] = notebook_document

          @attributes.freeze
        end

        #
        # The notebook document that got saved.
        #
        # @return [NotebookDocumentIdentifier]
        def notebook_document
          attributes.fetch(:notebookDocument)
        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

104 entries across 104 versions & 13 rubygems

Version Path
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_save_notebook_document_params.rb
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/did_save_notebook_document_params.rb
language_server-protocol-3.17.0.2 lib/language_server/protocol/interface/did_save_notebook_document_params.rb
language_server-protocol-3.17.0.1 lib/language_server/protocol/interface/did_save_notebook_document_params.rb