Sha256: 985b1d43adfc19b9ca58d1dc36b342042fed74773dd2bb203651f225d3a42363

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 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_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/code_lens_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/code_lens_params.rb