class LanguageServer::Protocol::Interface::FileOperationFilter
A filter to describe in which file operation requests or notifications the server is interested in.
Attributes
attributes[R]
Public Class Methods
new(scheme: nil, pattern:)
click to toggle source
# File lib/language_server/protocol/interface/file_operation_filter.rb, line 9 def initialize(scheme: nil, pattern:) @attributes = {} @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern @attributes.freeze end
Public Instance Methods
pattern()
click to toggle source
The actual file operation pattern.
@return [FileOperationPattern]
# File lib/language_server/protocol/interface/file_operation_filter.rb, line 30 def pattern attributes.fetch(:pattern) end
scheme()
click to toggle source
A Uri like `file` or `untitled`.
@return [string]
# File lib/language_server/protocol/interface/file_operation_filter.rb, line 22 def scheme attributes.fetch(:scheme) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/file_operation_filter.rb, line 36 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/file_operation_filter.rb, line 40 def to_json(*args) to_hash.to_json(*args) end