Sha256: 4b30b1f850c5212e4c22d2fc489cb8ece0da8de2cc7c8891273c545b42398a50

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class DocumentSymbolParams
        def initialize(text_document:)
          @attributes = {}

          @attributes[:textDocument] = text_document

          @attributes.freeze
        end

        #
        # The text document.
        #
        # @return [TextDocumentIdentifier]
        def text_document
          attributes.fetch(:textDocument)
        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/document_symbol_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/document_symbol_params.rb