Sha256: 9409de65ed5d8bdc94e4c38b3c7422f85cda5aeaf09e4f5b7aa6c22957cdc9b3

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class FoldingRangeRequestParam
        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_hash
          attributes
        end

        def to_json(*args)
          to_hash.to_json(*args)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
language_server-protocol-3.12.0.0 lib/language_server/protocol/interface/folding_range_request_param.rb