lib/ronin/network/extensions/pop3/net.rb in ronin-support-0.1.0 vs lib/ronin/network/extensions/pop3/net.rb in ronin-support-0.2.0.rc1

- old
+ new

@@ -47,10 +47,12 @@ # The newly created POP3 session. # # @return [Net::POP3] # The newly created POP3 session. # + # @api public + # def Net.pop3_connect(host,options={}) host = host.to_s port = (options[:port] || Ronin::Network::POP3.default_port) user = options[:user] password = options[:password] @@ -76,9 +78,11 @@ # # @yieldparam [Net::POP3] session # The newly created POP3 session. # # @return [nil] + # + # @api public # def Net.pop3_session(host,options={}) session = Net.pop3_connect(host,options) yield session if block_given?