Sha256: e9a96ce3613b2cbd49d197321217a6f66c3ea8f882aa0da49c9fc49e47a0abf8

Contents?: true

Size: 700 Bytes

Versions: 2

Compression:

Stored size: 700 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # Signature help options.
      #
      class SignatureHelpOptions
        def initialize(trigger_characters: nil)
          @attributes = {}

          @attributes[:triggerCharacters] = trigger_characters if trigger_characters

          @attributes.freeze
        end

        #
        # The characters that trigger signature help
        # automatically.
        #
        # @return [string[]]
        def trigger_characters
          attributes.fetch(:triggerCharacters)
        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/signature_help_options.rb
language_server-protocol-0.3.0 lib/language_server/protocol/interface/signature_help_options.rb