# to_source [![Build Status](https://secure.travis-ci.org/txus/to_source.png)](http://travis-ci.org/txus/to_source) to_source is a little Rubinius gem that enables Abstract Syntax Tree nodes to transform themselves into source code. It's the reverse of Rubinius' builtin `#to_ast` method. See for yourself: #!/bin/rbx some_code = "a = 123" ast = some_code.to_ast # => # @variable=nil @line=1 @name=:a> ast.to_source # => "a = 123" ## Installing to_source needs Rubinius 2.0 to run, in either 1.8 or 1.9 mode. Put this in your Gemfile: gem 'to_source' And just call `#to_source` in any AST node! ## Who's this This was made by [Josep M. Bach (Txus)](http://txustice.me) under the MIT license. I'm [@txustice](http://twitter.com/txustice) on twitter (where you should probably follow me!).