diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 12:01:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-28 12:01:06 +0200 |
commit | 72aa30f46a00a64e4a57e8d91723024f1255d0ff (patch) | |
tree | 98a938466edc5ca63cba3f056f44d59652a36b87 /lib/edoors | |
parent | 1f02d0091d40cde8790ef1e7e630e97978be293f (diff) | |
download | edoors-ruby-72aa30f46a00a64e4a57e8d91723024f1255d0ff.zip edoors-ruby-72aa30f46a00a64e4a57e8d91723024f1255d0ff.tar.gz |
Pasrticle: add #merged_length
Diffstat (limited to 'lib/edoors')
-rw-r--r-- | lib/edoors/particle.rb | 8 |
1 files changed, 7 insertions, 1 deletions
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 |