Sha256: 331c7f8c4e10df7b6b9970a66a5cdfd916a47df122a7a772fd027e3b3666eeff

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

module LanguageServer
  module Protocol
    module Interfaces
      class ApplyWorkspaceEditParams
        def initialize(edit:)
          @attributes = {}

          @attributes[:edit] = edit

          @attributes.freeze
        end

        #
        # The edits to apply.
        #
        # @return [WorkspaceEdit]
        def edit
          attributes.fetch(:edit)
        end

        attr_reader :attributes

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
language_server-protocol-0.2.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-protocol-0.1.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-0.4.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-0.3.1 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-0.3.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-0.2.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb
language_server-0.1.0 lib/language_server/protocol/interfaces/apply_workspace_edit_params.rb