From: Michael Neumann Date: 2005-07-26T00:17:40+09:00 Subject: Re: [ANN] Nitro + Og 0.21.0 Compiler, Og custom joins, Og dynamic injection, new builder gabriele renzi wrote: > George Moschovitis ha scritto: > >> Here are some examples: >> >> Compiler.setup_template_transformation do |template| >> template = Elements.transform(template) >> template = Localization.transform(template) >> template = Markup.transform(template) >> template = Template.transform(template) >> end > > > wow this is cool :) > Have you considered overloading >> to get a nicer interface? > i.e. something like > Compiler.setup_template_transformation do |t| > t= t >> Elements >> Localization >> Markup > end I submitted a patch that allows to do: t.transform(Elements).transform(Localization).transform(Markup) Now, if you alias #transform to #>> this should work! Regards, Michael