Ruby Objects and Dot Syntax
Coming from JavaScript I’m very accustomed to doing something like this:
Using dot syntax to access a Hash
is second nature to me. That’s why I was surprised when I ran into the following error yesterday while writing some Ruby.
“Hmm, weird,” I thought. I know I’ve seen dot syntax used in Ruby before..what gives?