lib/configatron/configatron.rb
# Allows for the temporary overriding of parameters in a block.
# Takes an optional Hash of parameters that will be applied before
# the block gets called. At the end of the block, the temporary
# settings are deleted and the original settings are reinstated.
Allows for the temporary overriding of parameters in a block.
Takes an optional Hash of parameters that will be applied before
the block gets called. At the end of the block, the temporary
settings are deleted and the original settings are reinstated.
Allows for the temporary overriding of parameters in a block . Takes an optional Hash of parameters that will be applied before the block gets called . At the end of the block the temporary settings are deleted and the original settings are reinstated .
def temp(options = nil)
    begin
      temp_start(options)
      yield @_store[@_namespace.last]
    rescue Exception => e
      raise e
    ensure
      temp_end
    end
  end
def temp ( options = nil ) begin temp_start ( options ) yield @_store [ @_namespace . last ] rescue Exception => e raise e ensure temp_end end end
Allows for the temporary overriding of parameters in a block.
Allows for the temporary overriding of parameters in a block .
options