diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 10:48:01 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 10:48:01 +0200 |
commit | dc84b1f183f8685ce4761215b43706d71db24e80 (patch) | |
tree | 611449c0be6392c0d6ebb8f3c45fa00cfa286957 /lib/edoors | |
parent | f93d32f4ecb278a9a7592c3a1e053585a2251088 (diff) | |
download | edoors-ruby-dc84b1f183f8685ce4761215b43706d71db24e80.zip edoors-ruby-dc84b1f183f8685ce4761215b43706d71db24e80.tar.gz |
Particle: add #each_merged
Diffstat (limited to 'lib/edoors')
-rw-r--r-- | lib/edoors/particle.rb | 7 |
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 |