Ruby `allocate` method

TIL that Ruby, or to be more precise Class class, offers allocate public instance method. According to the documentation the method: Allocates space for a new object of class’s class and does not call initialize on the new instance. The returned object must be an instance of class. The same documentation includes a nice code Read more…