Method: Net::SSH::Connection::EventLoop#ev_preprocess

Defined in:
lib/net/ssh/connection/event_loop.rb

#ev_preprocess(&block) ⇒ Object

Call preprocess on each session. If block given and that block retuns false then we exit the processing



48
49
50
51
52
53
54
55
# File 'lib/net/ssh/connection/event_loop.rb', line 48

def ev_preprocess(&block)
  return false if block_given? && !yield(self)

  @sessions.each(&:ev_preprocess)
  return false if block_given? && !yield(self)

  return true
end