From 1681891e1f58298706fbb382d324489762d14562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 9 May 2012 11:16:50 +0200 Subject: Particle: add #apply_link! --- lib/evendoors/particle.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.1-2-g2b99