Oh my god! This one pass Ruby parser is really annoying. Here’s todays example that doesn’t compile:
DICTIONARY = create_dictionary def MyClass.create_dictionary ... end
Yep, you got it, this blows up with a nice error message stating that the variable or method named create_dictionary couldn’t be found. Move the constant definition below, everything is fine. Lame.