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

- old
+ new

@@ -86,10 +86,12 @@ # # @example # Net.telnet_connect('towel.blinkenlights.nl') # # => #<Net::Telnet: ...> # + # @api public + # def Net.telnet_connect(host,options={}) host = host.to_s telnet_options = {} telnet_options['Host'] = host @@ -140,9 +142,11 @@ # Net.telnet_session('towel.blinkenlights.nl') do |movie| # movie.each_line { |line| puts line } # end # # @see Net.telnet_session + # + # @api public # def Net.telnet_session(host,options={}) session = Net.telnet_connect(host,options) yield session if block_given?