This it the flowchart that Ruby follows to look up a constant. The source for this flowchart was parse from the defintion for const_get from Ruby 2.1.0.
const_get