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.63 lib/rex/powershell/param.rb
rex-powershell-0.1.62 lib/rex/powershell/param.rb
rex-powershell-0.1.61 lib/rex/powershell/param.rb
rex-powershell-0.1.60 lib/rex/powershell/param.rb
rex-powershell-0.1.59 lib/rex/powershell/param.rb
rex-powershell-0.1.58 lib/rex/powershell/param.rb
rex-powershell-0.1.57 lib/rex/powershell/param.rb
rex-powershell-0.1.56 lib/rex/powershell/param.rb
rex-powershell-0.1.55 lib/rex/powershell/param.rb
rex-powershell-0.1.54 lib/rex/powershell/param.rb
rex-powershell-0.1.53 lib/rex/powershell/param.rb
rex-powershell-0.1.52 lib/rex/powershell/param.rb
rex-powershell-0.1.51 lib/rex/powershell/param.rb
rex-powershell-0.1.50 lib/rex/powershell/param.rb
rex-powershell-0.1.49 lib/rex/powershell/param.rb
rex-powershell-0.1.48 lib/rex/powershell/param.rb
rex-powershell-0.1.47 lib/rex/powershell/param.rb
rex-powershell-0.1.46 lib/rex/powershell/param.rb
rex-powershell-0.1.45 lib/rex/powershell/param.rb
rex-powershell-0.1.44 lib/rex/powershell/param.rb