Sha256: 1636e90b1a7f35ca3bd4cd078469975d88bb51b6866908357aa884e43af069e0

Contents?: true

Size: 592 Bytes

Versions: 217

Compression:

Stored size: 592 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_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

217 entries across 217 versions & 4 rubygems

Version Path
eac_tools-0.74.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.36.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.73.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.72.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.70.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.70.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.69.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.69.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.35.1 lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.34.1 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.68.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.67.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.35.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.67.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.34.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.66.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.65.1 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.65.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb
eac_cli-0.33.0 lib/eac_cli/patches/object/runner_with.rb
eac_tools-0.64.0 sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb