Created
October 25, 2012 18:06
-
-
Save jerodsanto/3954379 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# e.g. - "AC 10 01 3D" => "172.16.1.61" | |
def hex2ip(hex) | |
hex.split(" ").map { |i| i.to_i(16) }.join(".") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment