RubyFlow The Ruby and Rails community linklog

Bottomless Ruby Hash

The other day somebody asked if there is a way to blindly assign nested values to Ruby Hash without creating each key. Turns out there is, and it has an interesting side-effect. Welcome bottomless hash.

http://firedev.com/posts/2015/bottomless-ruby-hash/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in