Small ruby programm for calculating various properties of a given ip-address and subnet mask.