sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Kramdown::Options.define
Define a new option called +name+ (a Symbol) with the given +type+ (String, Integer, Float, Symbol, Boolean, Object), default value +default+ and the description +desc+. If a block is specified, it should validate the value and either raise an error or return a valid value. The type 'Object' should only be used for complex types for which none of the other types suffices. A block needs to be specified when using type 'Object' and it has to cope with a value given as string and as the opaque type.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/options.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Kramdown--Options-define-for-pr
# Commit to gitgit add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/options.rbgit commit -m "better docs for Kramdown::Options.define"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Kramdown--Options-define-for-pr
hub pull-request
# Celebrate!