Sha256: e072ec6355ce5868ec9ef219bfcb88fae730133b4b2c23fef637df95e56cc237

Contents?: true

Size: 306 Bytes

Versions: 3

Compression:

Stored size: 306 Bytes

Contents

module QED

  #
  def self.configure(name=nil, &block)
    name = (name || 'default').to_s
    profiles[name] = block if block
    profiles[name]
  end

  # Alias for configure.
  def self.profile(name=nil, &block)
    configure(name, &block)
  end

  #
  def self.profiles
    @profiles ||= {}
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qed-2.9.2 lib/qed/configure.rb
qed-2.9.1 lib/qed/configure.rb
qed-2.9.0 lib/qed/configure.rb