From: James Edward Gray II Date: 2010-09-21T03:59:21+09:00 Subject: Re: An elegant way... On Sep 20, 2010, at 1:45 PM, F. Senault wrote: > Le 20 septembre à 19:44, James Edward Gray II a écrit : > >> Dave Thomas and I were playing around with an idea like this recently: >> >> http://gist.github.com/570434 >> >> http://gist.github.com/570556 >> >> I hope those give you some fresh ideas. > > Where does the slice_before method comes from ? >> RUBY_VERSION => "1.9.2" >> Enumerable.public_instance_methods.include? :slice_before => true It was added in 1.9.2, I believe. James Edward Gray II