summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-28 10:48:01 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-28 10:48:01 +0200
commitdc84b1f183f8685ce4761215b43706d71db24e80 (patch)
tree611449c0be6392c0d6ebb8f3c45fa00cfa286957
parentf93d32f4ecb278a9a7592c3a1e053585a2251088 (diff)
downloadedoors-ruby-dc84b1f183f8685ce4761215b43706d71db24e80.zip
edoors-ruby-dc84b1f183f8685ce4761215b43706d71db24e80.tar.gz
Particle: add #each_merged
-rw-r--r--lib/edoors/particle.rb7
1 files changed, 7 insertions, 0 deletions
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