diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/evendoors/particle.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb index bde56be..7bec0e4 100644 --- a/lib/evendoors/particle.rb +++ b/lib/evendoors/particle.rb @@ -7,10 +7,6 @@ module EvenDoors class Particle # def initialize - reset! - end - # - def reset! @ts = Time.now # creation time @src = nil # Spot.path where it's originated from @room = nil @@ -24,6 +20,15 @@ module EvenDoors @merged = [] # list of merged particles end # + def reset! + @ts = Time.now + @src = @room = @door = @action = @link_value = nil + @dsts.clear + @link_fields.clear + @payload.clear + @merged.clear + end + # attr_accessor :src attr_reader :ts, :room, :door, :action, :link_value, :payload # |