Skip to content

Instantly share code, notes, and snippets.

@ess
Last active October 18, 2015 04:34
Show Gist options
  • Select an option

  • Save ess/6df4642e41f3c5527a17 to your computer and use it in GitHub Desktop.

Select an option

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?
class Something < Base
title "something"
def handle
# custom code that runs when an instance is used as a handler
end
end
class Something < Base
title "something"
def run
# custom code that runs when an instance is used as a handler
end
end
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