metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Enumerable#each_combo
Expected to be an enumeration of arrays. This method
iterates through combinations of each in position.
a = [ [0,1], [2,3] ]
a.each_combo { |c| p c }
produces
[0, 2]
[0, 3]
[1, 2]
[1, 3]Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/enumerable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Enumerable-each_combo-for-pr
# Commit to gitgit add lib/enumerable.rbgit commit -m "better docs for Enumerable#each_combo"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Enumerable-each_combo-for-pr
hub pull-request
# Celebrate!