Sha256: 66503c5db0abf1cbf2a75a2d012a94c33f2ade9d5979071ce5d5489f06dfa085

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 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_hash
          attributes
        end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
language_server-protocol-0.5.0 lib/language_server/protocol/interface/apply_workspace_edit_params.rb