Skip to content
Snippets Groups Projects
Commit 2ec6b230 authored by vanderhoorn's avatar vanderhoorn
Browse files

Remove duplicate multicast? method

The ```multicast?``` method was defined twice.
parent 064502c6
No related branches found
No related tags found
No related merge requests found
......@@ -634,20 +634,6 @@ module IPAddress;
[self.class.new("224.0.0.0/4")].any? {|i| i.include? self}
end
#
# Checks if an IPv4 address objects belongs
# to a multicast network RFC3171
#
# Example:
#
# ip = IPAddress "224.0.0.0/4"
# ip.multicast?
# #=> true
#
def multicast?
[self.class.new("224.0.0.0/4")].any? {|i| i.include? self}
end
#
# Checks if an IPv4 address objects belongs
# to a loopback network RFC1122
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment