sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
FFI::ConstGenerator#initialize
Creates a new constant generator that uses +prefix+ as a name, and an options hash. The only option is +:required+, which if set to +true+ raises an error if a constant you have requested was not found.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/ffi-1.11.3/lib/ffi/tools/const_generator.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-FFI--ConstGenerator-initialize-for-pr
# Commit to gitgit add app/server/ruby/vendor/ffi-1.11.3/lib/ffi/tools/const_generator.rbgit commit -m "better docs for FFI::ConstGenerator#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-FFI--ConstGenerator-initialize-for-pr
hub pull-request
# Celebrate!