Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Forked from bmizerany/gist:50511
Created January 22, 2009 12:07
Show Gist options
  • Save rtomayko/50513 to your computer and use it in GitHub Desktop.
Save rtomayko/50513 to your computer and use it in GitHub Desktop.
def run(app, &blk)
app = app.new(&blk) if blk && app.respond_to?(:new)
@ins << app
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment