J
Jacek
Hi
I use evals very often in our system. I start to think about little, on page
tracker so I decided to use PrettyException. I overloaded my class
(MException < PrettyException) to add a ability to read evals, and then
the problem came: The only way I can acces code I use with eval is to
create global variable with value of the code and then put this variable
into the code itself (well better look )
########################################################
$str="
begin
raise
rescue => e
puts MException.new($str,e).print_exception()
end
"
eval $str
#########################################################
Inside Exception I need this code to parse it on the page.
Is ther another better way to access eval param (my code)
from inside MException considering that MException is called
inside eval ?
Sorry for my lang. , Jacek Balcerski
I use evals very often in our system. I start to think about little, on page
tracker so I decided to use PrettyException. I overloaded my class
(MException < PrettyException) to add a ability to read evals, and then
the problem came: The only way I can acces code I use with eval is to
create global variable with value of the code and then put this variable
into the code itself (well better look )
########################################################
$str="
begin
raise
rescue => e
puts MException.new($str,e).print_exception()
end
"
eval $str
#########################################################
Inside Exception I need this code to parse it on the page.
Is ther another better way to access eval param (my code)
from inside MException considering that MException is called
inside eval ?
Sorry for my lang. , Jacek Balcerski