Installation

Nmapr is a gem! This means that it's already packaged up and ready for you to download if you have ruby on your system and have the gem command which is used to manage Ruby Libraries.

So, it's just as simple as running:

$ gem install nmapr

Requiring the Gem

To start using the gem in your project ( in a Ruby script / application ) all you need to do is require the gem in typical Ruby fashion which you can learn more about online.

require "nmapr"

# rest of your code here ...

Running a Script

To learn more about ruby, there are plenty of fantastic books and online resources that can be found that will allow you to get a better grasp of Ruby; and it's a fantastic language.

$ ruby script.rb
# output here

results matching ""

    No results matching ""