Browse files


  • Loading branch information...
rwilcox committed Oct 20, 2011
1 parent a3e7372 commit 5cb1a3e44eb452399706abd3eedf52a14959fa57
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.markdown
@@ -18,6 +18,17 @@ You mean that little s hack? That's a way to keep yourself from going sane havin
[See my blog article on this subject](
How do I get a presenter for this object I have?
Call `Present(object)`
This will look up the name of `object`'s class, then look for a class named (that name) presenter.
So, if object is a Todo instance, DelegatePresenter will look for `TodoPresenter`. It will then instantiate an object of that class, passing the parameter from the Present call into the constructor.
As `DelegatePresenter::Base` subclasses are just `SimpleDelegator`s at heart, this means methods that `TodoPresenter` does not know about will be passed on to (delegated to) the `Todo` instance.
So, what is DelegatePresenter, really?

0 comments on commit 5cb1a3e

Please sign in to comment.