Class: Rake::Delphi::IniProperty
Class Method Summary
collapse
Methods inherited from BasicTask
#initialize, #trace?
Class Method Details
.get(string) ⇒ Object
17
18
19
20
21
|
# File 'lib/rake/common/initask.rb', line 17
def self.get(string)
file, section, valuename = parse(string)
ini = IniFile.load(file)
return ini[section][valuename]
end
|
.set(string, value) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/rake/common/initask.rb', line 23
def self.set(string, value)
file, section, valuename = parse(string)
ini = IniFile.load(file)
ini[section][valuename] = value
ini.write
end
|