Thanks Ivan, I like your version :)
Will something similar be added directly into IronRuby Kernel ? -- Thibaut On Mon, Feb 1, 2010 at 10:07 AM, Ivan Porto Carrero < i...@whiterabbitconsulting.eu> wrote: > yes > > > http://github.com/casualjim/ironnails/blob/master/IronNails/vendor/iron_nails/lib/core_ext/kernel.rb#L17 > --- > Met vriendelijke groeten - Best regards - Salutations > Ivan Porto Carrero > Blog: http://flanders.co.nz > Twitter: http://twitter.com/casualjim > Author of IronRuby in Action (http://manning.com/carrero) > > > > On Mon, Feb 1, 2010 at 10:03 AM, Thibaut Barrère < > thibaut.barr...@gmail.com> wrote: > >> Hello, >> >> Is there a built-in way to achieve what C# 'using' does, with IronRuby ? >> >> Although it's pretty easy to roll your own ( >> http://myotherpants.com/2009/09/disposable-code), I'd like to use the >> built-in way if there's one. >> >> thanks! >> >> -- Thibaut >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core@rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core