lib/announcer/config.rb
# Putting this here instead of in Errors because I may move this into a
# separate gem.
Putting this here instead of in Errors because I may move this into a
separate gem.
Putting this here instead of in Errors because I may move this into a separate gem .
def _add(key, *args, &block)
      raise NotAddableError, self.inspect if @_value && !@_value.is_a?(Array)
      object = _args_to_object(*args, &block)
      _set(key, object.is_a?(Proc) ? ProcArray.new : []) if !_get(key)
      _get(key).push(object)
    end
def _add ( key , * args , & block ) raise NotAddableError , self . inspect if @_value && ! @_value . is_a? ( Array ) object = _args_to_object ( * args , & block ) _set ( key , object . is_a? ( Proc ) ? ProcArray . new : [ ] ) if ! _get ( key ) _get ( key ) . push ( object ) end
Putting this here instead of in Errors because I may move this into a
separate gem.
Putting this here instead of in Errors because I may move this into a separate gem .
key
<not_specific>
args
<not_specific>
block
<not_specific>