# File lib/ini.rb, line 40 def initialize( filename, opts = {} ) @fn = filename @comment = opts[:comment] || ';' @param = opts[:parameter] || '=' @ini = Hash.new {|h,k| h[k] = Hash.new} @rgxp_comment = %r/\A\s*\z|\A\s*[#{@comment}]/ @rgxp_section = %r/\A\s*\[([^\]]+)\]/o @rgxp_param = %r/\A([^#{@param}]+)#{@param}(.*)\z/ parse end