From 50b9b41e1e8b3012c165ea6a4c383273afe37ac3 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Sat, 2 Jun 2012 22:25:14 +0200 Subject: Particle add #set_dst! and specs --- lib/iotas/particle.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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? -- cgit v1.2.3