Le 20 septembre ? 20:59, James Edward Gray II a ?crit :

>>> RUBY_VERSION
> => "1.9.2"
>>> Enumerable.public_instance_methods.include? :slice_before
> => true
> 
> It was added in 1.9.2, I believe.

>> RUBY_VERSION
=> "1.9.1"
>> Enumerable.public_instance_methods.include? :slice_before
=> false

Indeed.  Explains why I can't find it in my third edition Pick Axe...

Fred
-- 
The problem with defending the purity of the English language is that
English is about as pure as a cribhouse whore. We don't just borrow
words; on occasion, English has pursued other languages down alleyways
to beat them unconscious and rifle their pockets for new vocabulary.
                                                (James D. Nicoll, rasfw)