Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Created May 26, 2010 15:40
Show Gist options
  • Save johnbintz/414651 to your computer and use it in GitHub Desktop.
Save johnbintz/414651 to your computer and use it in GitHub Desktop.
module R18n
class Translation
def iterate(s)
root = self
s.split('.').each { |key| root = root[key] }
root
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment