Website hosting service by Active-Venture.com
 

 Back to Index

prev - up - next - index

Class

The class of the classes. To tell the truth, each class have the unnamed class (which is the meta-class of the class), the class Class is the class of these meta-classes. It is complicated, but it is not important for using Ruby.

SuperClass:

Module

Methods:

ancestors

Returns the list of the superclass and inclded modules with precedence.

method_defined?(id)

Returns true, if the instance of the Class has the method specified by the id.

inherited(subclass)

Will be called when a subclass of the receiver created. The argument is the newly created subclass.

new(...)

Creates an instance of the class. This arguments to this method will pass to the initialize.

name()

Returns the class name.

superclass

Returns the superclass of the class.

Class Methods:

new([superclass])

Creates an anonymous class, which superclass is specified by superclass. The default value for the superclass is the class Object.


prev - up - next - index

matz@netlab.co.jp

 

  

 

 

2002-2004 Active-Venture.com Website Hosting Service

 
Buy domain name at only $5.95/yr with comprehensive domain hosting services. Domain registration and domain search service from $5.95 Cheap domain name registration and domain transfer service
 

Disclaimer: This documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://www.ruby-doc.org/docs/