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

- old
+ new

@@ -56,10 +56,12 @@ # The newly created IMAP session object. # # @return [Net::IMAP] # The newly created IMAP session object. # + # @api public + # def Net.imap_connect(host,options={}) host = host.to_s port = (options[:port] || Ronin::Network::IMAP.default_port) certs = options[:certs] auth = options[:auth] @@ -106,9 +108,11 @@ # The newly created IMAP session object. # # @return [nil] # # @see Net.imap_connect + # + # @api public # def Net.imap_session(host,options={}) session = Net.imap_connect(host,options) yield session if block_given?