1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merges r32261 from trunk into ruby_1_9_2.

--
	* object.c (Init_Object):  Teach RDoc what Init_class_hierarchy does to
	  hook up ri for BasicObject, Object, Module and Class.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@32914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2011-08-11 00:38:07 +00:00
parent d4bd0a5061
commit 745b03fc0e
3 changed files with 28 additions and 14 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 28 07:50:32 2011 Eric Hodel <drbrain@segment7.net>
* object.c (Init_Object): Teach RDoc what Init_class_hierarchy does to
hook up ri for BasicObject, Object, Module and Class.
Tue Jun 28 01:19:52 2011 Keiju Ishitsuka <keiju@ishitsuka.com> Tue Jun 28 01:19:52 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/ruby-lex.rb: fix [Bug #4232]. * lib/irb/ruby-lex.rb: fix [Bug #4232].

View file

@ -2458,23 +2458,24 @@ rb_f_array(VALUE obj, VALUE arg)
* \ingroup class * \ingroup class
*/ */
/* /* Document-class: BasicObject
* *
* <code>BasicObject</code> is the parent class of all classes in Ruby. * BasicObject is the parent class of all classes in Ruby. It's an explicit
* It's an explicit blank class. <code>Object</code>, the root of Ruby's * blank class.
* class hierarchy is a direct subclass of <code>BasicObject</code>. Its */
* methods are therefore available to all objects unless explicitly
* overridden. /* Document-class: Object
* *
* <code>Object</code> mixes in the <code>Kernel</code> module, making * Object is the root of Ruby's class hierarchy. Its methods are available
* the built-in kernel functions globally accessible. Although the * to all classes unless explicitly overridden.
* instance methods of <code>Object</code> are defined by the *
* <code>Kernel</code> module, we have chosen to document them here for * Object mixes in the Kernel module, making the built-in kernel functions
* clarity. * globally accessible. Although the instance methods of Object are defined
* by the Kernel module, we have chosen to document them here for clarity.
* *
* In the descriptions of Object's methods, the parameter <i>symbol</i> refers * In the descriptions of Object's methods, the parameter <i>symbol</i> refers
* to a symbol, which is either a quoted string or a * to a symbol, which is either a quoted string or a Symbol (such as
* <code>Symbol</code> (such as <code>:name</code>). * <code>:name</code>).
*/ */
void void
@ -2485,6 +2486,14 @@ Init_Object(void)
Init_class_hierarchy(); Init_class_hierarchy();
#if 0
// teach RDoc about these classes
rb_cBasicObject = rb_define_class("BasicObject", Qnil);
rb_cObject = rb_define_class("Object", rb_cBasicObject);
rb_cModule = rb_define_class("Module", rb_cObject);
rb_cClass = rb_define_class("Class", rb_cModule);
#endif
#undef rb_intern #undef rb_intern
#define rb_intern(str) rb_intern_const(str) #define rb_intern(str) rb_intern_const(str)

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2" #define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 299 #define RUBY_PATCHLEVEL 300
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1 #define RUBY_VERSION_TEENY 1