method

new

ruby latest stable - Class: Microsoft_XMLHTTP_1

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_2_180) is shown here.

new(obj = nil)
public

No documentation available.

# File ext/win32ole/sample/xml.rb, line 6991
  def initialize(obj = nil)
    @clsid = "{ED8C108E-4349-11D2-91A4-00C04F7969E8}"
    @progid = "Microsoft.XMLHTTP.1"
    if obj.nil?
      @dispatch = WIN32OLE.new(@progid)
    else
      @dispatch = obj
    end
  end