sonic-pi

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

C++

Code. Music. Live.

Parslet::Atoms::Alternative#initialize

Constructs an Alternative instance using all given parslets in the order
given. This is what happens if you call '|' on existing parslets, like 
this: 

  str('a') | str('b')

Source | Google | Stack overflow

Edit

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

cd sonic-pi

open app/server/ruby/vendor/parslet/lib/parslet/atoms/alternative.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Parslet--Atoms--Alternative-initialize-for-pr


# Commit to git

git add app/server/ruby/vendor/parslet/lib/parslet/atoms/alternative.rbgit commit -m "better docs for Parslet::Atoms::Alternative#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-Parslet--Atoms--Alternative-initialize-for-pr

hub pull-request


# Celebrate!