Files
metasploit-gs/lib/rex/powershell/param.rb
T
2015-02-10 20:53:46 +00:00

22 lines
341 B
Ruby

# -*- coding: binary -*-
module Rex
module Powershell
class Param
attr_accessor :klass, :name
def initialize(klass, name)
@klass = klass.strip
@name = name.strip.gsub(/\s|,/, '')
end
#
# To String
#
# @return [String] Powershell param
def to_s
"[#{klass}]$#{name}"
end
end
end
end