ruby-changes:29898
From: nagachika <ko1@a...>
Date: Sat, 13 Jul 2013 23:37:30 +0900 (JST)
Subject: [ruby-changes:29898] nagachika:r41950 (ruby_2_0_0): merge revision(s) 41863:
nagachika 2013-07-13 23:37:19 +0900 (Sat, 13 Jul 2013) New Revision: 41950 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41950 Log: merge revision(s) 41863: Module extended doc by @PragTob [fixes GH-335] Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/object.c branches/ruby_2_0_0/version.h Index: ruby_2_0_0/object.c =================================================================== --- ruby_2_0_0/object.c (revision 41949) +++ ruby_2_0_0/object.c (revision 41950) @@ -771,12 +771,30 @@ rb_obj_tap(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/object.c#L771 * Undefining one */ +/* + * Document-method: extended + * + * call-seq: + * extended(othermod) + * + * The equivalent of <tt>included</tt>, but for extended modules. + * + * module A + * def self.extended(mod) + * puts "#{self} extended in #{mod}" + * end + * end + * module Enumerable + * extend A + * end + * # => prints "A extended in Enumerable" + */ /* * Document-method: included * * call-seq: - * included( othermod ) + * included(othermod) * * Callback invoked whenever the receiver is included in another * module or class. This should be used in preference to @@ -798,7 +816,7 @@ rb_obj_tap(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/object.c#L816 * Document-method: prepended * * call-seq: - * prepended( othermod ) + * prepended(othermod) * * The equivalent of <tt>included</tt>, but for prepended modules. * Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 41949) +++ ruby_2_0_0/version.h (revision 41950) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1 #define RUBY_VERSION "2.0.0" #define RUBY_RELEASE_DATE "2013-07-13" -#define RUBY_PATCHLEVEL 263 +#define RUBY_PATCHLEVEL 264 #define RUBY_RELEASE_YEAR 2013 #define RUBY_RELEASE_MONTH 7 Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r41863 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/