U:RDoc::AnyMethod[iI"const_load:ETI"WIN32OLE::const_load;TT: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"HDefines the constants of OLE Automation server as mod's constants. ;TI"AThe first argument is WIN32OLE object or type library name. ;TI":If 2nd argument is omitted, the default is WIN32OLE. ;TI"FThe first letter of Ruby's constant variable name is upper case, ;TI"Bso constant variable name of WIN32OLE object is capitalized. ;TI"FFor example, the 'xlTop' constant of Excel is changed to 'XlTop' ;TI"in WIN32OLE. ;TI"AIf the first letter of constant variable is not [A-Z], then ;TI"7the constant is defined as CONSTANTS hash element.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"module EXCEL_CONST ;TI" end ;TI"/excel = WIN32OLE.new('Excel.Application') ;TI"-WIN32OLE.const_load(excel, EXCEL_CONST) ;TI"(puts EXCEL_CONST::XlTop # => -4160 ;TI"Fputs EXCEL_CONST::CONSTANTS['_xlDialogChartSourceData'] # => 541 ;TI" ;TI" WIN32OLE.const_load(excel) ;TI"%puts WIN32OLE::XlTop # => -4160 ;TI" ;TI"module MSO ;TI" end ;TI"EWIN32OLE.const_load('Microsoft Office 9.0 Object Library', MSO) ;TI"#puts MSO::MsoLineSingle # => 1;T: @format0: @fileI"ext/win32ole/win32ole.c;T:0@omit_headings_from_table_of_contents_below0I"/WIN32OLE.const_load( ole, mod = WIN32OLE) ;T0[I"(p1, p2 = v2);T@'FI" WIN32OLE;TcRDoc::NormalClass00