Last active
October 18, 2015 04:34
-
-
Save ess/6df4642e41f3c5527a17 to your computer and use it in GitHub Desktop.
Given the following options, which would be your preference for defining the code that is run as the default hook?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Something < Base | |
| title "something" | |
| def handle | |
| # custom code that runs when an instance is used as a handler | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Something < Base | |
| title "something" | |
| def run | |
| # custom code that runs when an instance is used as a handler | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Something < Base | |
| title "something" | |
| def something | |
| # custom code that runs when an instance is used as a handler | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment