Subject: [ruby-talk:8834] "Catching" output from eval-call
From: wys helbling.ch (Clemens Wyss)
Date: Mon, 8 Jan 2001 17:40:02 +0900
Hi,
is there a possibility to catch all print's, put's etc. which are
executed in an eval call. I.e:
eval("print \"hello\"; print \" world\"")
should yield "hello world"
Redirecting $stdout?
Regards
Clemens