Method: UnixConfigStyle#replaceValue
- Defined in:
- lib/unixconfigstyle.rb
#replaceValue(newvalue, key, index = 0, section = @@rootsection) ⇒ Object
Replace the value by the given one Parameters: newvalue : string key: String index :Integer (default 0) section: String (optionnal)
339 340 341 342 343 344 345 346 |
# File 'lib/unixconfigstyle.rb', line 339 def replaceValue (newvalue, key, index=0, section=@@rootsection) if @sections.key?(section) if @sections[section].key?(key) @sections[section][key][index].replace(newvalue) end end return nil end |