class Rex::Exploitation::Powershell::Param

Attributes

klass[RW]
name[RW]

Public Class Methods

new(klass, name) click to toggle source
# File lib/rex/exploitation/powershell/param.rb, line 7
def initialize(klass, name)
  @klass = klass.strip
  @name = name.strip.gsub(/\s|,/, '')
end

Public Instance Methods

to_s() click to toggle source

To String

@return [String] Powershell param

# File lib/rex/exploitation/powershell/param.rb, line 16
def to_s
  "[#{klass}]$#{name}"
end