Method: BlackStack::Workmesh::Protocol#pull
- Defined in:
- lib/workmesh.rb
#pull(node, l = nil) ⇒ Object
execute the pull function of this protocol, and update the push flags
158 159 160 161 162 163 164 165 166 |
# File 'lib/workmesh.rb', line 158 def pull(node, l=nil) l = BlackStack::DummyLogger.new(nil) if l.nil? raise 'The pull function is not defined' if self.pull_function.nil? begin self.pull_function.call(node, l) rescue => e raise e end end |