Skip to content

Commit

Permalink
* object.c (Init_Object): Restored Kernel documentation based on
Browse files Browse the repository at this point in the history
  Pickaxe book documentation.  Patch by Zachary Scott.
  [ruby-trunk - Feature ruby#6521]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
drbrain committed May 31, 2012
1 parent ee4f9b7 commit 4f69926
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Fri Jun 1 06:40:25 2012 Eric Hodel <drbrain@segment7.net>

* object.c (Init_Object): Restored Kernel documentation based on
Pickaxe book documentation. Patch by Zachary Scott.
[ruby-trunk - Feature #6521]

Fri Jun 1 06:29:42 2012 Eric Hodel <drbrain@segment7.net>

* object.c (rb_equal): Let Object be a link in #=== documentation.
Expand Down
12 changes: 12 additions & 0 deletions object.c
Original file line number Diff line number Diff line change
Expand Up @@ -2845,6 +2845,18 @@ Init_Object(void)
rb_define_private_method(rb_cBasicObject, "singleton_method_removed", rb_obj_dummy, 1);
rb_define_private_method(rb_cBasicObject, "singleton_method_undefined", rb_obj_dummy, 1);

/* Document-module: Kernel
*
* The Kernel module is included by class Object, so its methods are
* available in every Ruby object.
*
* The Kernel instance methods are documented in class Object while the
* module methods are documented here. These methods are called without a
* receiver and thus can be called in functional form:
*
* sprintf "%.1f", 1.234 #=> "1.2"
*
*/
rb_mKernel = rb_define_module("Kernel");
rb_include_module(rb_cObject, rb_mKernel);
rb_define_private_method(rb_cClass, "inherited", rb_obj_dummy, 1);
Expand Down

0 comments on commit 4f69926

Please sign in to comment.