README.md in much-mixin-0.0.1 vs README.md in much-mixin-0.2.3
- old
+ new
@@ -17,17 +17,17 @@
# `MyMuchMixin` is included in that receiver
end
end
```
-Mix `MuchMixin` in on other mixins that act as "plugins" to other components. Define included hooks using `mixin_included` that will be class eval'd in the scope of the receiver.
+Mix `MuchMixin` in on mix-ins. Define included hooks using `mixin_included` that will be class eval'd in the scope of the receiver.
-This allows you to define multiple hooks separately and ensures each hook will only be executed once - even if your plugin is mixed in multiple times on the same receiver.
+This allows you to define multiple hooks separately and ensures each hook will only be executed once - even if your mix-in is mixed-in multiple times on the same receiver.
### `mixin_class_methods` / `mixin_instance_methods`
-MuchMixin provides convenience methods for defining instance/class methods on plugin receivers:
+MuchMixin provides convenience methods for defining instance/class methods on receivers:
```ruby
requre "much-mixin"
module MyMuchMixin
@@ -45,23 +45,23 @@
end
```
### `after_mixin_included`
-These hooks work just like the `mixin_included` hooks, except they are evaluated _after_ any plugin class/instance methods have been evaluated. E.g. use this to call a class method that the plugin defines.
+These hooks work just like the `mixin_included` hooks, except they are evaluated _after_ any mix-in class/instance methods have been evaluated. E.g. use this to call a class method that the mix-in defines.
```ruby
requre "much-mixin"
module MyMuchMixin
include MuchMixin
after_mixin_included do
- configure_the_plugin
+ configure_the_mixin
end
mixin_class_methods do
- def configure_the_plugin
+ def configure_the_mixin
# ...
end
end
end
```