Method: IniFile#to_s
- Defined in:
- lib/inifile.rb
#to_s ⇒ Object
Returns this IniFile converted to a String.
157 158 159 160 161 162 163 164 165 |
# File 'lib/inifile.rb', line 157 def to_s s = [] @ini.each do |section,hash| s << "[#{section}]" hash.each {|param,val| s << "#{param} #{@param} #{escape_value val}"} s << "" end s.join("\n") end |