summaryrefslogtreecommitdiffstats
path: root/lib/iotas
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-02 22:25:14 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-02 22:25:14 +0200
commit50b9b41e1e8b3012c165ea6a4c383273afe37ac3 (patch)
treee945c7d24468703db8e910a9a2f3f03d21d28601 /lib/iotas
parentae7b1c31a84bdad05376ceccb8882286185f70d6 (diff)
downloadedoors-ruby-50b9b41e1e8b3012c165ea6a4c383273afe37ac3.zip
edoors-ruby-50b9b41e1e8b3012c165ea6a4c383273afe37ac3.tar.gz
Particle add #set_dst! and specs
Diffstat (limited to 'lib/iotas')
-rw-r--r--lib/iotas/particle.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/iotas/particle.rb b/lib/iotas/particle.rb
index 3cb48b3..78975bf 100644
--- a/lib/iotas/particle.rb
+++ b/lib/iotas/particle.rb
@@ -114,6 +114,12 @@ module Iotas
add_dsts d+Iotas::ACT_SEP+a
end
#
+ def set_dst! a, d
+ @room = @door = nil
+ @action = a
+ @dst = d
+ end
+ #
def split_dst!
@dst = @room = @door = @action = nil
return if (n = next_dst).nil?