sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Kramdown::Document#method_missing

Check if a method is invoked that begins with +to_+ and if so, try to instantiate a converter
class (i.e. a class in the Kramdown::Converter module) and use it for converting the document.

For example, +to_html+ would instantiate the Kramdown::Converter::Html class.

Source | Google | Stack overflow

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/document.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kramdown--Document-method_missing-for-pr


# Commit to git

git add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/document.rbgit commit -m "better docs for Kramdown::Document#method_missing"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Kramdown--Document-method_missing-for-pr

hub pull-request


# Celebrate!