The Rails I18n library transforms a YAML file into a data structure that is accessible via a dotted path call using the t() function.
t(\'one.two.three.four\
There is also HashDot.
HashDot allows dot notation syntax use on hashes. It is faster, and more traversable than an object created with OpenStruct.
a = {b: {c: {d: 1}}} a.b.c.d => 1