sonic-pi

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

C++

Code. Music. Live.

ActiveSupport::FileUpdateChecker#initialize

It accepts two parameters on initialization. The first is an array
of files and the second is an optional hash of directories. The hash must
have directories as keys and the value is an array of extensions to be
watched under that directory.

This method must also receive a block that will be called once a path
changes. The array of files and list of directories cannot be changed
after FileUpdateChecker has been initialized.

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--FileUpdateChecker-initialize-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/file_update_checker.rbgit commit -m "better docs for ActiveSupport::FileUpdateChecker#initialize"


# 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--FileUpdateChecker-initialize-for-pr

hub pull-request


# Celebrate!