From: nobu.nokada@... Date: 2004-09-14T01:42:51+09:00 Subject: Re: using a hash in eval Hi, At Mon, 13 Sep 2004 05:54:34 +0900, Florian Weber wrote in [ruby-talk:112351]: > 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? foo = method("#{foo}_method_which_expects_a_hash") define_method(:foo) do foo.call(options) end # I forgot "do". -- Nobu Nakada