title: in ruby how to remove the last part of ip address
body: <p>I am new to ruby.</p>
  
  <p>I have an ip address and I need the strip the last part of the ip address.</p>
  
  <p>e.g.</p>
  
  <p>208.68.38.12 becomes 208.68.38</p>
  
  <p>How do I do that in ruby?</p>