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
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,5 @@ server.rb
*.sw?
/tmp/
/_yardoc/
.idea/
\ No newline at end of file
.idea/
source "https://rubygems.org"
gemspec
group :development do
gem 'minitest', '~> 5.8', '>= 5.8.4'
end
......@@ -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