sonic-pi

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

C++

Code. Music. Live.

Mocha::ParameterMatchers::Base#|

A shorthand way of combining two matchers when at least one must match.

Returns a new +AnyOf+ parameter matcher combining two matchers using a logical OR.

This shorthand will not work with an implicit equals match. Instead, an explicit {Equals} matcher should be used.

Source | Google | Stack overflow

Edit

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

cd sonic-pi

open app/server/ruby/vendor/mocha-1.1.0/lib/mocha/parameter_matchers/base.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Mocha--ParameterMatchers--Base---for-pr


# Commit to git

git add app/server/ruby/vendor/mocha-1.1.0/lib/mocha/parameter_matchers/base.rbgit commit -m "better docs for Mocha::ParameterMatchers::Base#|"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Mocha--ParameterMatchers--Base---for-pr

hub pull-request


# Celebrate!