Module: Vagrant::Util::NetworkIP
- Defined in:
- lib/vagrant/util/network_ip.rb
Instance Method Summary collapse
-
#network_address(ip, subnet) ⇒ String
Returns the network address of the given IP and subnet.
Instance Method Details
#network_address(ip, subnet) ⇒ String
Returns the network address of the given IP and subnet.
9 10 11 |
# File 'lib/vagrant/util/network_ip.rb', line 9 def network_address(ip, subnet) IPAddr.new(ip).mask(subnet).to_s end |