# File lib/facets/core/enumerable/divide.rb, line 12 def divide(pattern) inject([]) do |memo,obj| memo.push [] if pattern === obj memo.last << obj memo end end