hoodwink.d enhanced

Fri Feb 11

Nested Hash

nested = 3.times.inject({}) do |hash, _| Hash.new do |h, k| h[k] = hash end end nested[:foo][:bar][:baz][:quux] = true nested # => {:foo=>{:bar=>{:baz=>{:quux=>true}}}}
Be alone, that is the secret of invention; be alone, that is when ideas are born.

Nikola Tesla

I've Given

Gonjasufi

74158378fc48c99cddb6948612fae5c73e45bcc8_m

Unknown