Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
IPAddr#to_range
to_range
lib/ipaddr.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/ipaddr.rb, line 406
def to_range
self.class.new(begin_addr, @family)..self.class.new(end_addr, @family)
end
Creates a Range object for the network address.