sonic-pi

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

C++

Code. Music. Live.

ActiveSupport::LogSubscriber#color

Set color by using a string or one of the defined constants. If a third
option is set to +true+, it also adds bold to the string. This is based
on the Highline implementation and will automatically append CLEAR to the
end of the returned String.

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActiveSupport--LogSubscriber-color-for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/log_subscriber.rbgit commit -m "better docs for ActiveSupport::LogSubscriber#color"


# 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--LogSubscriber-color-for-pr

hub pull-request


# Celebrate!