Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
fix slice_before on empty enumerable #822
This fixes an issue where calling slice_before on an empty enumerable
#before .slice_before(1).to_a #=> [nil] #after .slice_before(1).to_a #=> 
Would you also like a test added to rubyspec around this?