diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-02 06:01:12 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-02 06:01:12 +0000 |
commit | 88c127c19be3d12bc5edcb6ceb416985258396c6 (patch) | |
tree | c2d59557f5341202c22bf05448bebaad3df40a19 /object.c | |
parent | eee1377a60de602723599d313e1379ba7d875add (diff) | |
download | ruby-88c127c19be3d12bc5edcb6ceb416985258396c6.tar.gz |
Finish documenting internal stuff. See Changelog for other details
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 55 |
1 files changed, 31 insertions, 24 deletions
@@ -1171,7 +1171,7 @@ sym_to_sym(sym) /*********************************************************************** * - * Document-class: Module + * Document-class: Module * * A <code>Module</code> is a collection of methods and constants. The * methods in a module may be instance methods or module methods. @@ -1197,6 +1197,15 @@ sym_to_sym(sym) * */ +/* + * call-seq: + * mod.to_s => string + * + * Return a string representing this module or class. For basic + * classes and modules, this is the name. For singletons, we + * show information on the thing we're attached to as well. + */ + static VALUE rb_mod_to_s(klass) VALUE klass; @@ -2395,30 +2404,28 @@ VALUE ruby_top_self; * * Creating a new Name * - * Classes, modules, and objects are interrelated. In the diagram - * that follows, the arrows represent inheritance, and the - * parentheses meta-classes. All metaclasses are instances - * of the class `Class'. - * - * +------------------+ - * | | - * Object---->(Object) | - * ^ ^ ^ ^ | - * | | | | | - * | | +-----+ +---------+ | - * | | | | | - * | +-----------+ | | - * | | | | | - * +------+ | Module--->(Module) | - * | | ^ ^ | - * OtherClass-->(OtherClass) | | | - * | | | - * Class---->(Class) | - * ^ | - * | | - * +----------------+ - * + * Classes, modules, and objects are interrelated. In the diagram + * that follows, the arrows represent inheritance, and the + * parentheses meta-classes. All metaclasses are instances + * of the class `Class'. * + * +------------------+ + * | | + * Object---->(Object) | + * ^ ^ ^ ^ | + * | | | | | + * | | +-----+ +---------+ | + * | | | | | + * | +-----------+ | | + * | | | | | + * +------+ | Module--->(Module) | + * | | ^ ^ | + * OtherClass-->(OtherClass) | | | + * | | | + * Class---->(Class) | + * ^ | + * | | + * +----------------+ */ |