Sha256: e740fcaef88b8eb531f34544884ccb7c2cdb44aa3fae3f4b1420ff13621bc25a

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class DidChangeWatchedFilesParams
        def initialize(changes:)
          @attributes = {}

          @attributes[:changes] = changes

          @attributes.freeze
        end

        #
        # The actual file events.
        #
        # @return [FileEvent[]]
        def changes
          attributes.fetch(:changes)
        end

        attr_reader :attributes

        def to_json(*args)
          attributes.to_json(*args)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
language_server-protocol-0.4.0 lib/language_server/protocol/interface/did_change_watched_files_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/did_change_watched_files_params.rb