-
Constant naming and lookup in Ruby
I thought I had a pretty good understanding of how constant lookup worked in Ruby, but I encountered a surprising piece of behavior recently and I wanted to share it. We had a god model at work that contains thousands of lines of code, much of which is in methods that aren’t truly core to…