Skip to content

Instantly share code, notes, and snippets.

@crossaidi
Created September 26, 2013 18:18
Show Gist options
  • Save crossaidi/6718307 to your computer and use it in GitHub Desktop.
Save crossaidi/6718307 to your computer and use it in GitHub Desktop.
require with iterator
Dir[File.dirname(__FILE__) + '/support/*'].each{|path| require path}
@crossaidi
Copy link
Author

Requiring ruby scripts with "each"-iterator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment