metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

ExtendHash#-

Performs a sort of group difference
operation on hashes or arrays

  a = {:a=>1,:b=>2,:c=>3}
  b = {:a=>1,:b=>2}
  c = [:a,:c]
  a-b #=> {:c=>3}
  a-c #=> {:b=>2}

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/net/dns/rr.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ExtendHash---for-pr


# Commit to git

git add lib/net/dns/rr.rbgit commit -m "better docs for ExtendHash#-"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ExtendHash---for-pr

hub pull-request


# Celebrate!