lib/cfa/augeas_parser.rb
# Adds the given *value* for *key* in the tree.
#
# By default an AppendPlacer is used which produces duplicate keys
# but ReplacePlacer can be used to replace the *first* duplicate.
# @param key [String]
# @param value [String,AugeasTree,AugeasTreeValue]
# @param placer [Placer] determines where to insert value in tree.
#   Useful e.g. to specify order of keys or placing comment above of given
#   key.
Adds the given *value* for *key* in the tree.
By default an AppendPlacer is used which produces duplicate keys
but ReplacePlacer can be used to replace the *first* duplicate.
Adds the given * value * for * key * in the tree . By default an AppendPlacer is used which produces duplicate keys but ReplacePlacer can be used to replace the * first * duplicate .
def add(key, value, placer = AppendPlacer.new)
      element = placer.new_element(self)
      element[:key] = key
      element[:value] = value
      element[:operation] = :add
    end
def add ( key , value , placer = AppendPlacer . new ) element = placer . new_element ( self ) element [ :key ] = key element [ :value ] = value element [ :operation ] = :add end
Adds the given *value* for *key* in the tree.
Adds the given * value * for * key * in the tree .
key
<not_specific>
value
<not_specific>
placer
determines where to insert value in tree. Useful e.g. to specify order of keys or placing comment above of given key.
determines where to insert value in tree . Useful e . g . to specify order of keys or placing comment above of given key .
new
<not_specific>
<not_specific>
None