Skip to content

Instantly share code, notes, and snippets.

@kastiglione
Created July 28, 2012 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kastiglione/3194991 to your computer and use it in GitHub Desktop.
Save kastiglione/3194991 to your computer and use it in GitHub Desktop.
RubyMotion App::setup after hook
class << Motion::Project::App
real_setup = instance_method(:setup)
define_method :setup do |&block|
real_setup.bind(self).call(&block)
# run after hook here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment