Robert Klemme wrote:

>>I know that in lisp this can be easily done due to its nature (that is,
>>code is data and data is code), but in ruby?
> 
> 
> You can't without manually parsing the source file.  The closest you might
> get without extra parsing might be this, but still "code" is a String:
> 
> code=<<CODE
> 1 + 2 == 3
> CODE
> puts "#{code} --> #{eval code}"
> 

Thanks Robert, I understand what you mean: it looks like code, but it's 
a String.

Smart, but I was looking for real code.

Thanks anyway.
Ciao, Giuliano

-- 
If you want to send me an email in the address you have to write 'p', 
then a dot, followed by 'bossi' at 'quinary', another dot and 'com' at last