getting the passes back and starting on send

This commit is contained in:
Torsten Ruger
2014-08-21 17:46:12 +03:00
parent b5792c155c
commit 2260c680b2
6 changed files with 53 additions and 17 deletions

13
lib/trickle/send.rb Normal file
View File

@ -0,0 +1,13 @@
module Trickle
# This implements the send logic
# Send is so complicated that we actually code it in ruby and stick it in
# That off course opens up an endless loop possibility that we stop by reducing to Class and Module methods
class Send
def run block
block.codes.dup.each do |code|
next unless code.is_a? MessageSend
end
end
end
end