Class: Microsoft_XMLDSO_1_0
- Inherits:
-
Object
- Object
- Microsoft_XMLDSO_1_0
- Includes:
- WIN32OLE::VARIANT
- Defined in:
- sample/xml.rb
Overview
XML Data Source Object
Constant Summary
Constants included from WIN32OLE::VARIANT
WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT
Instance Attribute Summary collapse
-
#clsid ⇒ Object
readonly
Returns the value of attribute clsid.
-
#dispatch ⇒ Object
readonly
Returns the value of attribute dispatch.
-
#lastargs ⇒ Object
readonly
Returns the value of attribute lastargs.
-
#progid ⇒ Object
readonly
Returns the value of attribute progid.
Instance Method Summary collapse
-
#initialize(obj = nil) ⇒ Microsoft_XMLDSO_1_0
constructor
A new instance of Microsoft_XMLDSO_1_0.
-
#JavaDSOCompatible ⇒ Object
I4 JavaDSOCompatible.
-
#JavaDSOCompatible=(arg0) ⇒ Object
VOID JavaDSOCompatible.
- #method_missing(cmd, *arg) ⇒ Object
-
#readyState ⇒ Object
I4 readyState.
-
#XMLDocument ⇒ Object
IXMLDOMDocument XMLDocument.
-
#XMLDocument=(arg0) ⇒ Object
VOID XMLDocument.
Constructor Details
#initialize(obj = nil) ⇒ Microsoft_XMLDSO_1_0
Returns a new instance of Microsoft_XMLDSO_1_0.
7136 7137 7138 7139 7140 7141 7142 7143 7144 |
# File 'sample/xml.rb', line 7136 def initialize(obj = nil) @clsid = "{550DDA30-0541-11D2-9CA9-0060B0EC3D39}" @progid = "Microsoft.XMLDSO.1.0" if obj.nil? @dispatch = WIN32OLE.new(@progid) else @dispatch = obj end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(cmd, *arg) ⇒ Object
7146 7147 7148 |
# File 'sample/xml.rb', line 7146 def method_missing(cmd, *arg) @dispatch.method_missing(cmd, *arg) end |
Instance Attribute Details
#clsid ⇒ Object (readonly)
Returns the value of attribute clsid
7133 7134 7135 |
# File 'sample/xml.rb', line 7133 def clsid @clsid end |
#dispatch ⇒ Object (readonly)
Returns the value of attribute dispatch
7132 7133 7134 |
# File 'sample/xml.rb', line 7132 def dispatch @dispatch end |
#lastargs ⇒ Object (readonly)
Returns the value of attribute lastargs
7131 7132 7133 |
# File 'sample/xml.rb', line 7131 def lastargs @lastargs end |
#progid ⇒ Object (readonly)
Returns the value of attribute progid
7134 7135 7136 |
# File 'sample/xml.rb', line 7134 def progid @progid end |
Instance Method Details
#JavaDSOCompatible ⇒ Object
I4 JavaDSOCompatible
7158 7159 7160 7161 7162 |
# File 'sample/xml.rb', line 7158 def JavaDSOCompatible() ret = @dispatch._getproperty(65538, [], []) @lastargs = WIN32OLE::ARGV ret end |
#JavaDSOCompatible=(arg0) ⇒ Object
VOID JavaDSOCompatible
7179 7180 7181 7182 7183 |
# File 'sample/xml.rb', line 7179 def JavaDSOCompatible=(arg0) ret = @dispatch._setproperty(65538, [arg0], [VT_I4]) @lastargs = WIN32OLE::ARGV ret end |
#readyState ⇒ Object
I4 readyState
7165 7166 7167 7168 7169 |
# File 'sample/xml.rb', line 7165 def readyState() ret = @dispatch._getproperty(-525, [], []) @lastargs = WIN32OLE::ARGV ret end |