Update readme

This commit is contained in:
Dan Milne
2019-09-20 08:17:42 +10:00
parent 194403a974
commit a84e4e6949
6 changed files with 102 additions and 13 deletions

View File

@@ -81,4 +81,9 @@ module Paapi
end
alias_method :config, :configure
end
def symbolize_keys(hash)
Hash[hash.map{|k,v| v.is_a?(Hash) ? [k.to_sym, symbolize_keys(v)] : [k.to_sym, v] }]
end
end