# File lib/yell/adapters.rb, line 18 def add( type = :file, *args, &block ) options = [@options, *args].inject(Hash.new) do |h, c| h.merge( [String, Pathname].include?(c.class) ? {:filename => c} : c ) end # remove possible :null adapters @collection.shift if @collection.first.instance_of?(Yell::Adapters::Base) new_adapter = Yell::Adapters.new(type, options, &block) @collection.push(new_adapter) new_adapter end
@private
# File lib/yell/adapters.rb, line 43 def close @collection.each { |c| c.close } end
Generated with the Darkfish Rdoc Generator 2.