From bb6b273f3d8d38473cad7ce6f36c2c7b49e03ce6 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 21 Oct 2018 07:04:20 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mutex_m.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/mutex_m.rb') diff --git a/lib/mutex_m.rb b/lib/mutex_m.rb index 19fe85b81c..555331edcc 100644 --- a/lib/mutex_m.rb +++ b/lib/mutex_m.rb @@ -25,10 +25,14 @@ # 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 -- cgit v1.2.3