lib/logging/appenders/static_appender.rb in logging-0.6.1 vs lib/logging/appenders/static_appender.rb in logging-0.6.2

- old
+ new

@@ -1,6 +1,6 @@ -# $Id: static_appender.rb 77 2007-12-30 02:21:33Z tim_pease $ +# $Id: static_appender.rb 85 2008-02-06 17:59:00Z tim_pease $ module Logging class Appender @appenders = Hash.new @@ -20,9 +20,17 @@ # # Stores the given _appender_ instance in the Appender hash under the # key _name_. # def []=( name, val ) @appenders[name] = val end + + # call-seq: + # Appenders.remove( name ) + # + # Removes the appender instance stored in the Appender hash under the + # key _name_. + # + def remove( name ) @appenders.delete(name) end # call-seq: # Appender.stdout # # Returns an instance of the Stdout Appender. Unless the user explicitly