From: Tomasz Wegrzanowski Date: 2006-08-03T22:45:40+09:00 Subject: define_method vs eval "def ..." Hello, Just wondering, with eval "def ..." I can do: eval "def #{tag}(*args, &blk) xml(:#{tag}, *args, &blk) end" Of course it would be nicer to do: define_method(tag) {|*args,&blk|, xml(tag, *args, &blk) } But that throws a parse error. Is there some way to define method that takes a block argument without calling eval ? -- Tomasz Wegrzanowski [ http://t-a-w.blogspot.com/ ]