Sha256: 06a9727ae57c77521cd531af1e361dd7b09af6258675237aaae91440242e65b7

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

module Nmapr
  module Targets 
    def random_target
      random_targets(1)
    end

    def random_targets(number)
      @targets = ["-iR " << number.to_s]
    end

    def target(arg)
      @targets << arg 
    end

    def targets(*args)
      args.each do |argument|
        if argument.is_a? String
          @targets << argument
        elsif argument.is_a? Array
          @targets += argument
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nmapr-1.0.0 lib/nmapr/targets.rb