Sha256: fdfe65e56b5e915bb6d89287372aa76ee71cc0fac1b65af4d6d1a8dcd4035d6e

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module Commander
  def configure(*configuration_opts, &configuration_block)
    configuration_module = Module.new
    configuration_module.extend Commander::Methods

    configuration_module.class_exec(*configuration_opts, &configuration_block)

    configuration_module.class_exec do
      run!
    end
  end

  module_function :configure
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commander-5.0.0 lib/commander/configure.rb
commander-4.6.0 lib/commander/configure.rb