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

Version Path
avm-tools-0.98.0 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.97.0 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.96.0 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.16.3 lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.95.0 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.16.2 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.16.1 lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.94.3 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.16.0 lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.94.2 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
avm-tools-0.94.1 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.15.1 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.15.0 lib/eac_cli/patches/object/runner_with.rb
ehbrs-tools-0.20.0 vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb