README.md in mutex_m-0.2.0 vs README.md in mutex_m-0.3.0
- old
+ new
@@ -32,13 +32,15 @@
obj = Object.new
obj.extend Mutex_m
```
Or mixin Mutex_m into your module to your class inherit Mutex instance methods.
+You should probably use `prepend` to mixin (if you use `include`, you need to
+make sure that you call `super` inside `initialize`).
```ruby
class Foo
- include Mutex_m
+ prepend Mutex_m
# ...
end
obj = Foo.new
# this obj can be handled like Mutex