Method: APND::Notification.open_upstream_socket
- Defined in:
- lib/apnd/notification.rb
.open_upstream_socket {|socket| ... } ⇒ Object
Opens a new socket upstream, yields it, and closes it
63 64 65 66 67 |
# File 'lib/apnd/notification.rb', line 63 def self.open_upstream_socket(&block) socket = upstream_socket yield socket socket.close end |