Ruby Class Functions

EditRocket provides the following information on Class functions in the Ruby source code builder.

allocate() - Allocates space for a new object of class's class. The returned object must be an instance of class.

inherited inherited(subclass) - Callback invoked whenever a subclass of the current class is created.

new(super_class=Object) - Creates a new anonymous (unnamed) class with the given superclass (or Object if no parameter is given). You can give a class a name by assigning the class object to a constant.

new(super_class=Object) - Creates a new anonymous (unnamed) class with the given superclass (or Object if no parameter is given). You can give a class a name by assigning the class object to a constant.

superclass - Returns the superclass of class, or nil.

to_yaml( opts = {} ) -