Sha256: e7ad4cbabc617b992237f71280496b7ab72f4bef5f17b1bcdf89da1c314db1f2

Contents?: true

Size: 509 Bytes

Versions: 2

Compression:

Stored size: 509 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class RegistrationParams
        def initialize(registrations:)
          @attributes = {}

          @attributes[:registrations] = registrations

          @attributes.freeze
        end

        # @return [Registration[]]
        def registrations
          attributes.fetch(:registrations)
        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/registration_params.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/registration_params.rb