sonic-pi

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

C++

Code. Music. Live.

Parser::Source::Map#to_hash

Converts this source map to a hash with keys corresponding to
ranges. For example, if called on an instance of {Collection},
which adds the `begin` and `end` ranges, the resulting hash
will contain keys `:expression`, `:begin` and `:end`.

Source | Google | Stack overflow

Edit

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

cd sonic-pi

open app/server/ruby/vendor/parser-2.2.2.1/lib/parser/source/map.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Parser--Source--Map-to_hash-for-pr


# Commit to git

git add app/server/ruby/vendor/parser-2.2.2.1/lib/parser/source/map.rbgit commit -m "better docs for Parser::Source::Map#to_hash"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Parser--Source--Map-to_hash-for-pr

hub pull-request


# Celebrate!