From dc84b1f183f8685ce4761215b43706d71db24e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 28 Jun 2012 10:48:01 +0200 Subject: Particle: add #each_merged --- lib/edoors/particle.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/edoors/particle.rb b/lib/edoors/particle.rb index 763c578..864d1e7 100644 --- a/lib/edoors/particle.rb +++ b/lib/edoors/particle.rb @@ -370,6 +370,13 @@ module Edoors @merged.clear end # + # Yields each element in @merged + # + def each_merged + return if not block_given? + @merged.each do |p| yield p end + end + # end # end -- cgit v1.1-2-g2b99