module IniFile
Public Class Methods
from_hash(hash)
click to toggle source
# File lib/ini-dsl/from_hash.rb, line 2 def self.from_hash hash hash.map do |section, properties| ["[#{section}]", *properties.map { |property, value| [property, ' = ', value].join }] .join "\n" end.join "\n" end