From: ezmobius mob Date: 2006-06-09T02:53:59+09:00 Subject: Re: Macros and macro expansion On 6/8/06, Edward Kenworthy wrote: > ezmobius mob wrote: > > > > > Your code should work fine if you remove the lammbda from inside the > > define_method block. > > Perfect! Thank you. > > (Is there a way to see the results of a macro expansion?) > > -- > Posted via http://www.ruby-forum.com/. > > Unfortunately there is no easy way to see the expanded method. If you really want to see it you can use parse_tree and ruby2c but its not a very complete solution -- Ezra Zygmuntowicz ezmobius@gmail.com "Rubyists don't throw rocks at dogs"