From: Florian Weber Date: 2004-09-13T05:54:34+09:00 Subject: Re: using a hash in eval > At Thu, 9 Sep 2004 02:16:56 +0900, > Florian Weber wrote in [ruby-talk:111898]: >> i guess iterating over each key and value and writing it 'by hand' is >> the only way, right? > > define_method(:foo) > some_method_which_expects_a_hash(options) > end that unfortunately doesn't really work in my situation, because i'm accessing some methods and variables like: #{foo}_method_which_expects_a_hash(options) is there no other way to do that?