From: Florian Weber Date: 2004-09-14T04:46:29+09:00 Subject: Re: using a hash in eval >> #{foo}_method_which_expects_a_hash(options) >> >> is there no other way to do that? > > foo = method("#{foo}_method_which_expects_a_hash") > define_method(:foo) do > foo.call(options) > end > > # I forgot "do". awesome! thanks a lot! i was wondering, are there any differences concerning performance when the method is called.. or is it the same wether the method is created with eval or with define_method?