Dom Christie

Today I Learned

In Ruby, curly braces can be omitted from hashes not only when the hash is the last argument of a method, but also when it’s the last item in an array: [1, 2, three: :four]. Neat!