S
Srdjan Marinovic
hi,
I've got a following problem: when I do
instance_eval do
class T
end
end
(i'm doing this in irb, so self is main)
everything is fine, I get a new class T.
However when I do
instance_eval "class T; end"
I do not get a new class T. even though no errors were reported. Is
there any particular reason for this?
Thanks in advance
srdjan
I've got a following problem: when I do
instance_eval do
class T
end
end
(i'm doing this in irb, so self is main)
everything is fine, I get a new class T.
However when I do
instance_eval "class T; end"
I do not get a new class T. even though no errors were reported. Is
there any particular reason for this?
Thanks in advance
srdjan