Sha256: e817da085b833101023440282e97c9df41789dcd1f2afbc43b06ce8ee11ce75e

Contents?: true

Size: 843 Bytes

Versions: 106

Compression:

Stored size: 843 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # General text document registration options.
      #
      class TextDocumentRegistrationOptions
        def initialize(document_selector:)
          @attributes = {}

          @attributes[:documentSelector] = document_selector

          @attributes.freeze
        end

        #
        # A document selector to identify the scope of the registration. If set to
        # null the document selector provided on the client side will be used.
        #
        # @return [DocumentSelector]
        def document_selector
          attributes.fetch(:documentSelector)
        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

106 entries across 106 versions & 12 rubygems

Version Path
harbr-0.1.41 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
harbr-0.1.39 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
harbr-0.1.38 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
harbr-0.1.37 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.6 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.5 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.4 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
study_line-0.1.1 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
synctera_ruby_sdk-1.1.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
synctera_ruby_sdk-1.1.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
synctera_ruby_sdk-1.1.1 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
sampero-0.1.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
tursodb-0.1.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
synctera_ruby_sdk-1.0.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/text_document_registration_options.rb
language_server-protocol-3.17.0.3 lib/language_server/protocol/interface/text_document_registration_options.rb