Sha256: 2e3fb8891387316e7a2bcfe314d174b2b0c5dcf74ad2106a5c579310e3ba1fa7

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

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

          @attributes[:textDocument] = text_document

          @attributes.freeze
        end

        #
        # The document to request code lens for.
        #
        # @return [TextDocumentIdentifier]
        def text_document
          attributes.fetch(:textDocument)
        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

6 entries across 6 versions & 1 rubygems

Version Path
language_server-protocol-3.14.0.2 lib/language_server/protocol/interface/code_lens_params.rb
language_server-protocol-3.14.0.1 lib/language_server/protocol/interface/code_lens_params.rb
language_server-protocol-3.14.0.0 lib/language_server/protocol/interface/code_lens_params.rb
language_server-protocol-3.12.0.0 lib/language_server/protocol/interface/code_lens_params.rb
language_server-protocol-3.7.0.0 lib/language_server/protocol/interface/code_lens_params.rb
language_server-protocol-0.5.0 lib/language_server/protocol/interface/code_lens_params.rb