diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-04 10:40:01 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-04 10:40:01 +0200 |
commit | 9fed8e1ae1657f97e92afb0bd28875b9fe29654a (patch) | |
tree | aa1a037cbadcfa4ed78035ca5e959599cd5bebe4 /lib/evendoors | |
parent | 06b46dd5022529f175f29838b205bdd125627d33 (diff) | |
download | edoors-ruby-9fed8e1ae1657f97e92afb0bd28875b9fe29654a.zip edoors-ruby-9fed8e1ae1657f97e92afb0bd28875b9fe29654a.tar.gz |
particle: rename merge->merge! add merged_shift, remove merged_count
Diffstat (limited to 'lib/evendoors')
-rw-r--r-- | lib/evendoors/particle.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb index 7b951f9..7c2af07 100644 --- a/lib/evendoors/particle.rb +++ b/lib/evendoors/particle.rb @@ -119,11 +119,7 @@ module EvenDoors # # merge particles management # - def merged_count - @merged.length - end - # - def merge p + def merge! p @merged << p end # @@ -131,6 +127,10 @@ module EvenDoors @merged[i] end # + def merged_shift + @merged.shift + end + # end # end |