sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
AST::Node#initialize
Constructs a new instance of Node.
The arguments `type` and `children` are converted with `to_sym` and
`to_a` respectively. Additionally, the result of converting `children`
is frozen. While mutating the arguments is generally considered harmful,
the most common case is to pass an array literal to the constructor. If
your code does not expect the argument to be frozen, use `#dup`.
The `properties` hash is passed to {#assign_properties}.Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/ast-2.0.0/lib/ast/node.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-AST--Node-initialize-for-pr
# Commit to gitgit add app/server/ruby/vendor/ast-2.0.0/lib/ast/node.rbgit commit -m "better docs for AST::Node#initialize"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-AST--Node-initialize-for-pr
hub pull-request
# Celebrate!