Next | Roles | 5 |
Any kind of Moonpig object can receive events:
Just compose the Moonpig::Role::HandlesEvents role
This implements ->handle_event for your class
Many unrelated classes can share the same handle_event method
Next | Copyright © 2013 M. J. Dominus |