rubex
https://github.com/sciruby/rubex
Ruby
rubex - A Ruby-like language for writing Ruby C extensions.
Rubex::SymbolTable::Scope#add_ruby_method
name: name of the method c_name: c_name of the method extern: whether it is defined within the Rubex script or in a scope outside the Rubex script.
Edit
git clone [email protected]:sciruby/rubex.git
cd rubex
open lib/rubex/symbol_table/scope.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rubex--SymbolTable--Scope-add_ruby_method-for-pr
# Commit to gitgit add lib/rubex/symbol_table/scope.rbgit commit -m "better docs for Rubex::SymbolTable::Scope#add_ruby_method"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rubex--SymbolTable--Scope-add_ruby_method-for-pr
hub pull-request
# Celebrate!