From: Tom Sawyer Date: 2003-01-05T18:05:41+09:00 Subject: executing block at toplevel from within a class how do i execute a block for the toplevel from within a class method? take a look: class AnyOther ... end class AnyOld def initialize @goingup = AnyOther.new eval "goneup = @goingup", TOPLEVEL_BINDING end end this isn't going to work b/c @goingup will be looked for in the toplevel too. right? moreover i tried this and it executes without and error, but goneup isn't to be found. a = AnyOld.new puts goneup reports goneup dosen't exist. where did it go? mind you i'm running this from with in an rhtml eruby script. -transami