def another_eval(script) eval(script)end class A def after p 'a' endend a = A.newa.after $b = "class A def after p 'b' endend" class B another_eval($b)end a.after
def another_eval(script) eval(script) end class A def after p 'a' end end a = A.new a.after $b = "class A def after p 'b' end end" class B another_eval($b) end a.after