rubex

https://github.com/sciruby/rubex

Ruby

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

Rubex::AST::Statement::BeginBlock::Begin#generate_else_block

We use a goto statement to jump to the ensure block so that when a
condition arises where no error is raised, the ensure statement will
be executed, after which rb_jump_tag() will be called.

Source | Google | Stack overflow

Edit

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

cd rubex

open lib/rubex/ast/statement/begin_block/begin.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rubex--AST--Statement--BeginBlock--Begin-generate_else_block-for-pr


# Commit to git

git add lib/rubex/ast/statement/begin_block/begin.rbgit commit -m "better docs for Rubex::AST::Statement::BeginBlock::Begin#generate_else_block"


# 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--Statement--BeginBlock--Begin-generate_else_block-for-pr

hub pull-request


# Celebrate!