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

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
This commit is contained in:
aycabta 2018-10-21 07:04:20 +00:00
parent fdbc8eed42
commit bb6b273f3d

View file

@ -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