Adam Prescott on Scopes in Rubinius - Rubinius
Author: Less Than Three. <3. http://less.thanthree.com
Description: Rubinius is an implementation of the Ruby programming language. The Rubinius bytecode virtual machine is written in C++. The bytecode compiler is written in pure Ruby. The vast majority of the core library is also written in Ruby, with some supporting primitives that interact with the VM directly.

1.2.3

## Adam Prescott on Scopes in Rubinius

Shane Becker 22 May 2011

Adam Prescott wrote a lengthy article about variables, closures and scope in Ruby, mentioning Rubinius at the end:

> One of the really cool things about the Rubinius implementation of Ruby is that it exposes, by requirement, a level of internals which you can’t find in MRI, including some internals with scopes. Because these internals are exposed in Ruby itself, you can play around with scopes as objects, using `VariableScope`, including getting access to the available local variables within that scope, with `VariableScope.current.locals`.

How are you using Rubinius? What are you doing with it that you couldn’t do before? What is it missing for you to really dive in? Let us know. We’re listening.

- community@rubini.us
- @rubinius

— Use Ruby™