class LanguageServer::Protocol::Interface::FileOperationPatternOptions

Matching options for the file operation pattern.

Attributes

attributes[R]

Public Class Methods

new(ignore_case: nil) click to toggle source
# File lib/language_server/protocol/interface/file_operation_pattern_options.rb, line 8
def initialize(ignore_case: nil)
  @attributes = {}

  @attributes[:ignoreCase] = ignore_case if ignore_case

  @attributes.freeze
end

Public Instance Methods

ignore_case() click to toggle source

The pattern should be matched ignoring casing.

@return [boolean]

# File lib/language_server/protocol/interface/file_operation_pattern_options.rb, line 20
def ignore_case
  attributes.fetch(:ignoreCase)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/file_operation_pattern_options.rb, line 26
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/file_operation_pattern_options.rb, line 30
def to_json(*args)
  to_hash.to_json(*args)
end