brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Vendor::OkJson#tok
Scans the first token in s and
returns a 3-element list, or nil
if s does not begin with a valid token.
The first list element is one of
'{', '}', ':', ',', '[', ']',
:val, :str, and :space.
The second element is the lexeme.
The third element is the value of the
token for :val and :str, otherwise
it is the lexeme.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-tok-for-pr
# Commit to gitgit add Library/Homebrew/vendor/okjson.rbgit commit -m "better docs for Vendor::OkJson#tok"
# 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-tok-for-pr
hub pull-request
# Celebrate!