rubex

https://github.com/sciruby/rubex

Ruby

rubex - A Ruby-like language for writing Ruby C extensions.

Rubex::AST::Node#add_top_statements_to_object_scope

Scan all the statements that do not belong to any particular class
  (meaning that they belong to Object) and add them to the Object class,
  which becomes the class from which all other classes will inherit from.

Source | Google | Stack overflow

Edit

git clone [email protected]:sciruby/rubex.git

cd rubex

open lib/rubex/ast/node.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rubex--AST--Node-add_top_statements_to_object_scope-for-pr


# Commit to git

git add lib/rubex/ast/node.rbgit commit -m "better docs for Rubex::AST::Node#add_top_statements_to_object_scope"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Rubex--AST--Node-add_top_statements_to_object_scope-for-pr

hub pull-request


# Celebrate!