title: How can I get the list of computer names in Windows Network using Ruby
body: <p>I know that the Ruby have a lot of gems allowing programmers write a really beatiful code.
  This short example by default scans all addresses on subnet 192.168.1.x. </p>
  
  <pre><code>require 'ipscanner'
  a = IPScanner.scan
  #=&gt; ["192.168.1.1", "192.168.1.4"]
  </code></pre>
  
  <p>How can I get computer names instead of ip's? Is there any gem that implements Window API (NetBIOS)?
  Maybe it's better to use smth. like macaddr <a href="http://rubygems.org/gems/macaddr" rel="nofollow">http://rubygems.org/gems/macaddr</a> that parse 'ipconfig /all' (in my case - 'nbtstat')</p>