Skip to content
Snippets Groups Projects
Commit 817b20fd authored by Francis Luong (Franco)'s avatar Francis Luong (Franco)
Browse files

Merge remote-tracking branch 'bluemonk/master' into 70-contributing-md

# Conflicts:
#	.gitignore
parents db8cf975 f04db1f7
Branches
No related tags found
No related merge requests found
...@@ -16,4 +16,5 @@ server.rb ...@@ -16,4 +16,5 @@ server.rb
*.sw? *.sw?
/tmp/ /tmp/
/_yardoc/ /_yardoc/
.idea/ .idea/
\ No newline at end of file
source "https://rubygems.org" source "https://rubygems.org"
gemspec gemspec
group :development do
gem 'minitest', '~> 5.8', '>= 5.8.4'
end
...@@ -634,20 +634,6 @@ module IPAddress; ...@@ -634,20 +634,6 @@ module IPAddress;
[self.class.new("224.0.0.0/4")].any? {|i| i.include? self} [self.class.new("224.0.0.0/4")].any? {|i| i.include? self}
end 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 # Checks if an IPv4 address objects belongs
# to a loopback network RFC1122 # 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