Bug #13598 ยป mutex_m.doc.patch
mutex_m.rb 2017-05-25 10:40:27.936388023 +0200 | ||
---|---|---|
# 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
|