Sha256: 21ca14f920dacac8a517e9462ac1d9f835a0d6dfdae73583842e8d0050490520

Contents?: true

Size: 509 Bytes

Versions: 13

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module LanguageServer
    class ExecuteCommandProvider
      class << self
        def all
          @all ||= []
        end

        def inherited(subclass)
          all << subclass
        end

        def command(cmd = nil)
          @command = cmd unless cmd.nil?
          @command
        end
      end

      def execute(arguments)
        raise NotImplementedError
      end

      def command
        self.class.command
      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_provider.rb
theme-check-1.14.0 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.13.0 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.12.1 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.12.0 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.11.0 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.10.3 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.10.2 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.10.1 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.10.0 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.9.2 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.9.1 lib/theme_check/language_server/execute_command_provider.rb
theme-check-1.9.0 lib/theme_check/language_server/execute_command_provider.rb