sonic-pi

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

C++

Code. Music. Live.

Enumerable#many?

Returns +true+ if the enumerable has more than 1 element. Functionally
equivalent to <tt>enum.to_a.size > 1</tt>. Can be called with a block too,
much like any?, so <tt>people.many? { |p| p.age > 26 }</tt> returns +true+
if more than one person is over 26.

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/core_ext/enumerable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Enumerable-many--for-pr


# Commit to git

git add app/server/ruby/vendor/activesupport-7.0.6/lib/active_support/core_ext/enumerable.rbgit commit -m "better docs for Enumerable#many?"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Enumerable-many--for-pr

hub pull-request


# Celebrate!