sonic-pi

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

C++

Code. Music. Live.

ActiveSupport::Callbacks#run_callbacks

Runs the callbacks for the given event.

Calls the before and around callbacks in the order they were set, yields
the block (if given one), and then runs the after callbacks in reverse
order.

If the callback chain was halted, returns +false+. Otherwise returns the
result of the block, or +true+ if no block is given.

  run_callbacks :save do
    save
  end

Source | Google | Stack overflow

Edit

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

cd sonic-pi

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

Contribute

# Make a new branch

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


# Commit to git

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


# 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-run_callbacks-for-pr

hub pull-request


# Celebrate!