lib/better_ipaddr/methods.rb in better_ipaddr-0.7.0 vs lib/better_ipaddr/methods.rb in better_ipaddr-0.7.1
- old
+ new
@@ -170,9 +170,15 @@
end
# The first host address in the network.
# @return [IPAddr]
+ def hash
+ # see https://github.com/jruby/jruby/issues/4460
+ # remove this override when specs still pass without it
+ [self.class, @addr, @mask_addr, @family].hash
+ end
+
def first
self[0]
end
# Return a new address with the prefix length reduced by the given