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.80 lib/rex/powershell/param.rb
rex-2.0.13 lib/rex/powershell/param.rb
rex-powershell-0.1.79 lib/rex/powershell/param.rb
rex-powershell-0.1.78 lib/rex/powershell/param.rb
rex-powershell-0.1.77 lib/rex/powershell/param.rb
rex-powershell-0.1.76 lib/rex/powershell/param.rb
rex-2.0.12 lib/rex/powershell/param.rb
rex-powershell-0.1.75 lib/rex/powershell/param.rb
rex-powershell-0.1.74 lib/rex/powershell/param.rb
rex-powershell-0.1.73 lib/rex/powershell/param.rb
rex-2.0.11 lib/rex/powershell/param.rb
rex-powershell-0.1.72 lib/rex/powershell/param.rb
rex-powershell-0.1.71 lib/rex/powershell/param.rb
rex-powershell-0.1.70 lib/rex/powershell/param.rb
rex-powershell-0.1.69 lib/rex/powershell/param.rb
rex-powershell-0.1.68 lib/rex/powershell/param.rb
rex-powershell-0.1.67 lib/rex/powershell/param.rb
rex-powershell-0.1.66 lib/rex/powershell/param.rb
rex-powershell-0.1.65 lib/rex/powershell/param.rb
rex-powershell-0.1.64 lib/rex/powershell/param.rb