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.23 lib/rex/powershell/param.rb
rex-powershell-0.1.22 lib/rex/powershell/param.rb
rex-powershell-0.1.21 lib/rex/powershell/param.rb
rex-powershell-0.1.20 lib/rex/powershell/param.rb
rex-powershell-0.1.19 lib/rex/powershell/param.rb
rex-powershell-0.1.18 lib/rex/powershell/param.rb
rex-powershell-0.1.17 lib/rex/powershell/param.rb
rex-powershell-0.1.16 lib/rex/powershell/param.rb
rex-powershell-0.1.15 lib/rex/powershell/param.rb
rex-powershell-0.1.14 lib/rex/powershell/param.rb
rex-powershell-0.1.13 lib/rex/powershell/param.rb
rex-powershell-0.1.12 lib/rex/powershell/param.rb
rex-powershell-0.1.11 lib/rex/powershell/param.rb
rex-powershell-0.1.10 lib/rex/powershell/param.rb
rex-powershell-0.1.9 lib/rex/powershell/param.rb
rex-powershell-0.1.8 lib/rex/powershell/param.rb
rex-powershell-0.1.7 lib/rex/powershell/param.rb
rex-powershell-0.1.6 lib/rex/powershell/param.rb
rex-powershell-0.1.5 lib/rex/powershell/param.rb
rex-powershell-0.1.4 lib/rex/powershell/param.rb