brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Vendor::OkJson#encode
Encodes x into a json text. It may contain only Array, Hash, String, Numeric, true, false, nil. (Note, this list excludes Symbol.) X itself must be an Array or a Hash. No other value can be encoded, and an error will be raised if x contains any other value, such as Nan, Infinity, Symbol, and Proc, or if a Hash key is not a String. Strings contained in x must be valid UTF-8.
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/vendor/okjson.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vendor--OkJson-encode-for-pr
# Commit to gitgit add Library/Homebrew/vendor/okjson.rbgit commit -m "better docs for Vendor::OkJson#encode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vendor--OkJson-encode-for-pr
hub pull-request
# Celebrate!