Sha256: 7b2a4f79e3604ecafd02a49ec7449c9e36955bb66a118addd5a4796180a1d8ad

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # Describe options to be used when registering for text document change events.
      #
      class DidChangeWatchedFilesRegistrationOptions
        def initialize(watchers:)
          @attributes = {}

          @attributes[:watchers] = watchers

          @attributes.freeze
        end

        #
        # The watchers to register.
        #
        # @return [FileSystemWatcher[]]
        def watchers
          attributes.fetch(:watchers)
        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

5 entries across 5 versions & 1 rubygems

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