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.100 lib/rex/powershell/param.rb
rex-powershell-0.1.99 lib/rex/powershell/param.rb
rex-powershell-0.1.98 lib/rex/powershell/param.rb
rex-powershell-0.1.97 lib/rex/powershell/param.rb
rex-powershell-0.1.96 lib/rex/powershell/param.rb
rex-powershell-0.1.95 lib/rex/powershell/param.rb
rex-powershell-0.1.94 lib/rex/powershell/param.rb
rex-powershell-0.1.93 lib/rex/powershell/param.rb
rex-powershell-0.1.92 lib/rex/powershell/param.rb
rex-powershell-0.1.91 lib/rex/powershell/param.rb
rex-powershell-0.1.90 lib/rex/powershell/param.rb
rex-powershell-0.1.89 lib/rex/powershell/param.rb
rex-powershell-0.1.88 lib/rex/powershell/param.rb
rex-powershell-0.1.87 lib/rex/powershell/param.rb
rex-powershell-0.1.86 lib/rex/powershell/param.rb
rex-powershell-0.1.85 lib/rex/powershell/param.rb
rex-powershell-0.1.84 lib/rex/powershell/param.rb
rex-powershell-0.1.83 lib/rex/powershell/param.rb
rex-powershell-0.1.82 lib/rex/powershell/param.rb
rex-powershell-0.1.81 lib/rex/powershell/param.rb