def hash_from_string(string, value)
  hash, split = {}, string.split(".")
  (split.size-1).downto(0) do |i|
...

Ruby Nested Hash from delimiter-...

by rubiii, March 04, 2010 21:38, 4 refactorings, tagged with functional, ruby

the string can contain 1-n ...

61d580cc983d52f3dc5050a6858fc788 Talk