For a project I want to be able to get access to the block definition
as a string.
After some help I came up with this: http://gist.github.com/279656
This solves the problem. When I run the same code on top of IronRuby,
I get the following error message:
to_sexp': undefined methodparse_tree_for_proc’ for
#<ParseTree:0x0000726 @include_newlines=false> (NoMethodError)
to_ruby' from mock.rb:31:inblock_as_string’
Any ideas on this? It’s using Ruby2Ruby and ParseTree. Is it because
it’s based around C extensions? Anyone know how to do it on the CLR?