IP.Range.new
You're seeing just the function
new
, go back to IP.Range module for more information.
Specs
Creates a new IP range, with validation.
If your provide an out-of-order range, it will raise ArgumentError
.
iex> IP.Range.new({10, 0, 0, 1}, {10, 0, 0, 5})
%IP.Range{
first: {10, 0, 0, 1},
last: {10, 0, 0, 5}
}