sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rugged::Blob#text
Return up to +max_lines+ of text from a blob as a +String+. If +max_lines+ is less than 0, the full string is returned. The string is created with the given +encoding+, defaulting to Encoding.default_external. When limiting the size of the text with +max_lines+, the string is expected to have an ASCII-compatible encoding, and is checked for the newline +\n+ character.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_blob.c
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rugged--Blob-text-for-pr
# Commit to gitgit add app/server/ruby/vendor/rugged-1.7.1/ext/rugged/rugged_blob.cgit commit -m "better docs for Rugged::Blob#text"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rugged--Blob-text-for-pr
hub pull-request
# Celebrate!