lib/ronin/network/network.rb in ronin-support-0.1.0 vs lib/ronin/network/network.rb in ronin-support-0.2.0.rc1
- old
+ new
@@ -33,9 +33,11 @@
# Determines the current external IP Address.
#
# @return [String]
# The external IP Address according to {http://checkip.dyndns.org}.
#
+ # @api public
+ #
def Network.ip
IPAddr.extract(Net::HTTP.get(IP_URL)).first
end
end
end