Sha256: 038855f560718e70baf195f625e11320c68a6a2a13417822965971ba2c18984e

Contents?: true

Size: 356 Bytes

Versions: 8

Compression:

Stored size: 356 Bytes

Contents

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

    configuration_module.class_exec(*configuration_opts, &configuration_block)

    configuration_module.class_exec do
      run!
    end
  end

  module_function :configure
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
simple_commander-0.6.1 lib/simple_commander/configure.rb
simple_commander-0.6.0 lib/simple_commander/configure.rb
simple_commander-0.5.1 lib/simple_commander/configure.rb
simple_commander-0.5.0 lib/simple_commander/configure.rb
simple_commander-0.4.0 lib/simple_commander/configure.rb
simple_commander-0.3.1 lib/simple_commander/configure.rb
simple_commander-0.3.0 lib/simple_commander/configure.rb
simple_commander-0.1.0 lib/simple_commander/configure.rb