teaminsight/addbuild — pull request #6 by kellyredding (2012-07-24 21:56:51+00:00)
Title: Register actions as methods on other Actions

This adds the `register` class method to any classes that mix in
`Addbuild::Action`. This method will register a named method on
the action that runs a given action class. This is just a macro to
make running an action from another action easier and more like
calling command methods.

Arguments that the named method is called with are passed to the
action constructor. Calling the method constructs a new action
instance, sets its host, and runs it.

Once you have registered an action on another action, you can run
it by calling the registered method, just as you would run a
command from an action.