module Mingle
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/mingle.rb, line 15 def config @config ||= Mingle::Configuration.new end
configure() { |config| ... }
click to toggle source
# File lib/mingle.rb, line 11 def configure yield config end
temporarily(options = {}) { || ... }
click to toggle source
Set temporary configuration options for the duration of the given block.
options - A Hash describing temporary configuration options.
# File lib/mingle.rb, line 22 def temporarily options = {} original = @config.dup options.each do |key, value| @config.send "#{key}=", value end yield ensure @config = original end