ruby-changes:53056
From: aycabta <ko1@a...>
Date: Sun, 21 Oct 2018 16:04:25 +0900 (JST)
Subject: [ruby-changes:53056] aycabta:r65270 (trunk): Add missing info for Mutex_m to the doc [Bug #13598]
aycabta 2018-10-21 16:04:20 +0900 (Sun, 21 Oct 2018) New Revision: 65270 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65270 Log: Add missing info for Mutex_m to the doc [Bug #13598] * lib/mutex_m.rb: The #initialize method in a class that includes Mutex_m needs calling #super. Modified files: trunk/lib/mutex_m.rb Index: lib/mutex_m.rb =================================================================== --- lib/mutex_m.rb (revision 65269) +++ lib/mutex_m.rb (revision 65270) @@ -25,10 +25,14 @@ https://github.com/ruby/ruby/blob/trunk/lib/mutex_m.rb#L25 # obj.extend Mutex_m # # Or mixin Mutex_m into your module to your class inherit Mutex instance -# methods. +# methods ---remember to call super() in your class initialize method. # # class Foo # include Mutex_m +# def initialize ... +# ... +# super() +# end # # ... # end # obj = Foo.new -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/