Method: Class#allocate

Defined in:
object.c

#allocateObject

Allocates space for a new object of class’s class. The returned object must be an instance of class.

Returns:



1544
1545
1546
# File 'object.c', line 1544

VALUE
rb_obj_alloc(klass)
VALUE klass;