From 2ec6b23000903aade43f11a2849a86fb0ba99396 Mon Sep 17 00:00:00 2001 From: vanderhoorn Date: Tue, 15 Mar 2016 12:01:30 +0100 Subject: Remove duplicate multicast? method The ```multicast?``` method was defined twice. --- lib/ipaddress/ipv4.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/ipaddress/ipv4.rb b/lib/ipaddress/ipv4.rb index 7d8e0d3..a123e71 100644 --- a/lib/ipaddress/ipv4.rb +++ b/lib/ipaddress/ipv4.rb @@ -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 -- cgit v1.2.1