Sha256: cc3cd970155996a287c1d7cdd74e153028e7edd406c64838c316ff4e390b3544

Contents?: true

Size: 640 Bytes

Versions: 6

Compression:

Stored size: 640 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # The parameters of a Workspace Symbol Request.
      #
      class WorkspaceSymbolParams
        def initialize(query:)
          @attributes = {}

          @attributes[:query] = query

          @attributes.freeze
        end

        #
        # A non-empty query string
        #
        # @return [string]
        def query
          attributes.fetch(:query)
        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

6 entries across 6 versions & 1 rubygems

Version Path
language_server-protocol-3.14.0.2 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-3.14.0.1 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-3.14.0.0 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-3.12.0.0 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-3.7.0.0 lib/language_server/protocol/interface/workspace_symbol_params.rb
language_server-protocol-0.5.0 lib/language_server/protocol/interface/workspace_symbol_params.rb