Sha256: 0fad84122e7ad6990f92f6d51c4910ce6eeeea8b9787547685e5be1b9e770d35

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class PrepareRenameParams < TextDocumentPositionParams
        def initialize(text_document:, position:)
          @attributes = {}

          @attributes[:textDocument] = text_document
          @attributes[:position] = position

          @attributes.freeze
        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

4 entries across 4 versions & 1 rubygems

Version Path
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/prepare_rename_params.rb
language_server-protocol-3.15.0.2 lib/language_server/protocol/interface/prepare_rename_params.rb
language_server-protocol-3.15.0.1 lib/language_server/protocol/interface/prepare_rename_params.rb
language_server-protocol-3.15.0.0 lib/language_server/protocol/interface/prepare_rename_params.rb