module Vagrant::Util::NetworkIP
Public Instance Methods
network_address(ip, subnet)
click to toggle source
Returns the network address of the given IP and subnet.
@return [String]
# File lib/vagrant/util/network_ip.rb, line 9 def network_address(ip, subnet) IPAddr.new(ip).mask(subnet).to_s end