2014-08-21 16:46:12 +02:00
|
|
|
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
|
2014-08-21 21:57:20 +02:00
|
|
|
if( code.me.type == Virtual::Reference)
|
|
|
|
|
|
|
|
next
|
|
|
|
end
|
2014-08-21 16:46:12 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|