Sha256: 6a1be910edc2d1b1205e7e0cc02b58880ff48f3dc865110b251d377b7762fa16

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      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

2 entries across 2 versions & 1 rubygems

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