summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-28 10:48:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-28 10:48:23 +0200
commitb9b8b59d6a7d7437318272e436548052175d4e03 (patch)
treef079b742dac1c135f822bed9e593d67eb95fb4bf /lib
parentdc84b1f183f8685ce4761215b43706d71db24e80 (diff)
downloadedoors-ruby-b9b8b59d6a7d7437318272e436548052175d4e03.zip
edoors-ruby-b9b8b59d6a7d7437318272e436548052175d4e03.tar.gz
Board: add ACT_PASS_THROUGH
Diffstat (limited to 'lib')
-rw-r--r--lib/edoors/board.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/edoors/board.rb b/lib/edoors/board.rb
index 990d312..27c5c85 100644
--- a/lib/edoors/board.rb
+++ b/lib/edoors/board.rb
@@ -22,6 +22,7 @@
module Edoors
#
ACT_FOLLOW = 'follow'.freeze
+ ACT_PASS_THROUGH = 'pass_through'.freeze
#
class Board < Door
#
@@ -69,7 +70,7 @@ module Edoors
#
def process_p p
@viewer.receive_p p if @viewer
- if p.action!=Edoors::ACT_ERROR
+ if p.action!=Edoors::ACT_ERROR and p.action!=Edoors::ACT_PASS_THROUGH
p2 = @postponed[p.link_value] ||= p
return if p2==p
@postponed.delete p.link_value