Vendily submitted a new resource:
Making new Triggers - Setting procs to run on your own calls.
Read more about this resource...
Making new Triggers - Setting procs to run on your own calls.
Triggers allow us to make self contained code, or procs as ruby refers to them, and hook them up so they can be called at a later time. There are two main types in the Essentials code that are worth editing:Event
s andHandlerHash
s. They are set up differently and have different uses, but both can be considered triggers.
Events are better when you have many procs that are all interested in one event, as Events will call each proc in turn to allow it to make its...
Read more about this resource...