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