-
-
Save shadoi/4d61554d69261d1759e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf_ini.each_line do |line| | |
line.chomp! | |
next if line =~ /^#/ | |
next unless line =~ /\w+=\w+/ | |
key, val = line.split('=') | |
if self.send(key.to_sym).is_a?(Array) | |
if val =~ /,\s*/ | |
val = val.split(%r{,\s*} | |
else | |
val = Array(val) | |
end | |
end | |
site_conf[key] = val | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment