module Nmapr::Targets
Public Instance Methods
random_target()
click to toggle source
# File lib/nmapr/targets.rb, line 3 def random_target random_targets(1) end
random_targets(number)
click to toggle source
# File lib/nmapr/targets.rb, line 7 def random_targets(number) @targets = ["-iR " << number.to_s] end
target(arg)
click to toggle source
# File lib/nmapr/targets.rb, line 11 def target(arg) @targets << arg end
targets(*args)
click to toggle source
# File lib/nmapr/targets.rb, line 15 def targets(*args) args.each do |argument| if argument.is_a? String @targets << argument elsif argument.is_a? Array @targets += argument end end end