From: gabriele renzi Date: 2005-07-25T22:45:59+09:00 Subject: Re: [ANN] Nitro + Og 0.21.0 Compiler, Og custom joins, Og dynamic injection, new builder 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 (IIRC I saw this in the ruby-gstreamer api which features a similar pipeline system)