Sha256: 48e1e326e451daff746e313d041dbf247d7845f4f9be49d5471e456e783d9199

Contents?: true

Size: 341 Bytes

Versions: 106

Compression:

Stored size: 341 Bytes

Contents

# -*- 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

Version data entries

106 entries across 106 versions & 2 rubygems

Version Path
rex-powershell-0.1.43 lib/rex/powershell/param.rb
rex-powershell-0.1.42 lib/rex/powershell/param.rb
rex-powershell-0.1.41 lib/rex/powershell/param.rb
rex-powershell-0.1.40 lib/rex/powershell/param.rb
rex-powershell-0.1.39 lib/rex/powershell/param.rb
rex-powershell-0.1.38 lib/rex/powershell/param.rb
rex-powershell-0.1.37 lib/rex/powershell/param.rb
rex-powershell-0.1.36 lib/rex/powershell/param.rb
rex-powershell-0.1.35 lib/rex/powershell/param.rb
rex-powershell-0.1.34 lib/rex/powershell/param.rb
rex-powershell-0.1.33 lib/rex/powershell/param.rb
rex-powershell-0.1.32 lib/rex/powershell/param.rb
rex-powershell-0.1.31 lib/rex/powershell/param.rb
rex-powershell-0.1.30 lib/rex/powershell/param.rb
rex-powershell-0.1.29 lib/rex/powershell/param.rb
rex-powershell-0.1.28 lib/rex/powershell/param.rb
rex-powershell-0.1.27 lib/rex/powershell/param.rb
rex-powershell-0.1.26 lib/rex/powershell/param.rb
rex-powershell-0.1.25 lib/rex/powershell/param.rb
rex-powershell-0.1.24 lib/rex/powershell/param.rb