new(*args)
public
Calls allocate to create a new object of class’s class, then
invokes that object’s initialize method, passing it args. This
is the method that ends up getting called whenever an object is constructed
using .new.
Show source
static VALUE
rb_class_s_new(int argc, const VALUE *argv, VALUE klass)
{
VALUE obj;
obj = rb_class_alloc(klass);
rb_obj_call_init(obj, argc, argv);
return obj;
}