Browse files

Clarified the wording in the README a little

  • Loading branch information...
1 parent 7aebfc3 commit b9dbba568a795713d774fb2e6b2cfb5f6b2f3b40 @duairc committed Sep 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.markdown
View
2 README.markdown
@@ -7,4 +7,4 @@ This [discussion](http://news.ycombinator.com/item?id=791762) on Hacker News the
- `Class#unmetaclass`: If `klass` is a metaclass of `x`, then `klass.unmetaclass` will return `x`.
- `Abominations::DelayMetaclassEval`: Including this mixin into your mixin overrides its metaclass's metaclass's `class_eval` (yes!) such that any blocks you pass to its metaclass's `class_eval` will be evaluated in the context of the metaclass of the class into which you are mixing your mixin. This means that it's very easy for your mixin to give class methods to the classes into which it is mixed. I've also constructed `Module#before` and `Module#after` in such a way that, if you call them in a mixin which includes `Abominations::DelayMetaclassEval`, you can do `before :initialize do puts "foo" end` in your mixin, and instances of classes into which it is mixed will print "foo" to the screen just before they are initialized, even if `initialize` is defined inside the class (not your mixin), even if it's defined *after* your mixin is mixed in!
-This code also does a lot more than this, but it'd really take too long to list everything that it does. It's nearly all monkey patching, so if you're offended my monkey patching then you might want to leave now. Otherwise, take a look at the code and check out everything it does!
+This code also does a lot more than this, but it'd really take too long to list everything that it does. It's nearly all monkey patching, so if you're offended by monkey patching then you might want to leave now. Otherwise, take a look at the code and check out everything it does!

0 comments on commit b9dbba5

Please sign in to comment.