I'm reading rails autoloading_and_reloading_constants.
In the section 2.2 Class and Module Definitions are Constant Assignments
I understood the part where it says
class Project < ApplicationRecord
end
evaluates to
Project = Class.new(ApplicationRecord)
but failed to understand this part
Thus, when one informally says "the String class", that really means: the class object stored in the constant called "String" in the class object stored in the Object constant. String is otherwise an ordinary Ruby constant and everything related to constants such as resolution algorithms applies to it.
Can someone briefly explain it?