sonic-pi

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

C++

Code. Music. Live.

ActiveSupport::Callbacks::Callback#make_lambda

Filters support:

  Symbols:: A method to call.
  Strings:: Some content to evaluate.
  Procs::   A proc to call with the object.
  Objects:: An object with a <tt>before_foo</tt> method on it to call.

All of these objects are compiled into methods and handled
the same after this point:

  Symbols:: Already methods.
  Strings:: class_eval'd into methods.
  Procs::   using define_method compiled into methods.
  Objects::
    a method is created that calls the before_foo method
    on the object.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/activesupport/lib/active_support/callbacks.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--Callbacks--Callback-make_lambda-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport/lib/active_support/callbacks.rbgit commit -m "better docs for ActiveSupport::Callbacks::Callback#make_lambda"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-ActiveSupport--Callbacks--Callback-make_lambda-for-pr

hub pull-request


# Celebrate!