Sha256: df546edca6bca3eaadf86e7d4a7ef11dce32bae5a5a61716091084bb7ccca528
Contents?: true
Size: 600 Bytes
Versions: 14
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'eac_cli/runner' require 'eac_cli/runner_with' require 'eac_cli/runner_with_set' class Object def runner_with(*runners, &block) include ::EacCli::Runner enable_simple_cache enable_console_speaker runners.each do |runner| include ::EacCli::RunnerWithSet.default.item_to_module(runner) end runner_definition(&block) if block end private def runner_with_to_module(runner) return runner if runner.is_a?(::Module) "EacCli::RunnerWith::#{runner.to_s.camelize}".constantize end end
Version data entries
14 entries across 14 versions & 3 rubygems