# File lib/inifile.rb, line 76 def initialize( content = nil, opts = {} ) opts, content = content, nil if Hash === content @content = content @comment = opts.fetch(:comment, ';#') @param = opts.fetch(:parameter, '=') @encoding = opts.fetch(:encoding, nil) @escape = opts.fetch(:escape, true) @default = opts.fetch(:default, 'global') @filename = opts.fetch(:filename, nil) @ini = Hash.new {|h,k| h[k] = Hash.new} if @content then parse! elsif @filename then read end end