fork download
  1. ary='a.b.c.d'.split('.').reverse
  2. hsh={ary.shift=>'untranslated'}
  3. hsh={ary.shift=>hsh} until ary.empty?
  4. p hsh
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
{"a"=>{"b"=>{"c"=>{"d"=>"untranslated"}}}}