Sha256: cf225ee41452590819602e72f55f13e7d05f7da6156f466ddb10ecbed7f6df41

Contents?: true

Size: 355 Bytes

Versions: 13

Compression:

Stored size: 355 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module LanguageServer
    class ExecuteCommandEngine
      def initialize
        @providers = {}
      end

      def <<(provider)
        @providers[provider.command] = provider
      end

      def execute(command, arguments)
        @providers[command].execute(arguments)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.14.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.13.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.12.1 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.12.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.11.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.10.3 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.10.2 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.10.1 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.10.0 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.9.2 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.9.1 lib/theme_check/language_server/execute_command_engine.rb
theme-check-1.9.0 lib/theme_check/language_server/execute_command_engine.rb