class LanguageServer::Protocol::Interface::DidChangeWatchedFilesRegistrationOptions
Describe options to be used when registering for file system change events.
Attributes
attributes[R]
Public Class Methods
new(watchers:)
click to toggle source
# File lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb, line 8 def initialize(watchers:) @attributes = {} @attributes[:watchers] = watchers @attributes.freeze end
Public Instance Methods
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb, line 26 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb, line 30 def to_json(*args) to_hash.to_json(*args) end
watchers()
click to toggle source
The watchers to register.
@return [FileSystemWatcher
# File lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb, line 20 def watchers attributes.fetch(:watchers) end