From: Florian Weber Date: 2004-09-09T18:06:35+09:00 Subject: Re: using a hash in eval >> module_eval <<-"end_eval", __FILE__, __LINE__ >> def foo >> some_method_which_expects_a_hash(#{options}) >> end >> end_eval > > I'm not exactly sure what you are trying to do. Do any of these do > what > you want? And by "better" are you meaning faster, easier to maintain, > more robust, or...? well, basically just not so breakable. inspecting and then replacing \" just doesnt sound so safe..