diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 11:16:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-09 11:16:50 +0200 |
commit | 1681891e1f58298706fbb382d324489762d14562 (patch) | |
tree | 660910c2f0fff89a424a9e7cba52ef7b45505126 | |
parent | e6176c2e5db763dc429158ce894492ec6e7b823f (diff) | |
download | edoors-ruby-1681891e1f58298706fbb382d324489762d14562.zip edoors-ruby-1681891e1f58298706fbb382d324489762d14562.tar.gz |
Particle: add #apply_link!
-rw-r--r-- | lib/evendoors/particle.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb index dabe2e9..bb93729 100644 --- a/lib/evendoors/particle.rb +++ b/lib/evendoors/particle.rb @@ -80,6 +80,13 @@ module EvenDoors @payload[EvenDoors::ERROR_FIELD]=e end # + def apply_link! lnk + @src = lnk.door + clear_dsts! + add_dsts lnk.dsts + set_link_fields lnk.fields + end + # # data manipulation # def []= k, v |