HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/ri/2.6.0/system/WIN32OLE_RECORD/to_h-i.ri
U:RDoc::AnyMethod[iI"	to_h:ETI"WIN32OLE_RECORD#to_h;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph;	[I"CReturns Ruby Hash object which represents VT_RECORD variable. ;TI"LThe keys of Hash object are member names of VT_RECORD OLE variable and ;TI"Dthe values of Hash object are values of VT_RECORD OLE variable.;To:RDoc::Markup::BlankLineo;
;	[I"@If COM server in VB.NET ComServer project is the following:;T@o:RDoc::Markup::Verbatim;	[I",Imports System.Runtime.InteropServices
;TI"Public Class ComClass
;TI"    Public Structure Book
;TI"/        <MarshalAs(UnmanagedType.BStr)> _
;TI"$        Public title As String
;TI"$        Public cost As Integer
;TI"    End Structure
;TI"+    Public Function getBook() As Book
;TI""        Dim book As New Book
;TI"*        book.title = "The Ruby Book"
;TI"        book.cost = 20
;TI"        Return book
;TI"    End Function
;TI"End Class
;T:@format0o;
;	[I"?then, the result of WIN32OLE_RECORD#to_h is the following:;T@o;;	[	I"require 'win32ole'
;TI".obj = WIN32OLE.new('ComServer.ComClass')
;TI"book = obj.getBook
;TI":book.to_h # => {"title"=>"The Ruby Book", "cost"=>20};T;
0:
@fileI"#ext/win32ole/win32ole_record.c;T:0@omit_headings_from_table_of_contents_below0I"0WIN32OLE_RECORD#to_h #=> Ruby Hash object.
;T0[I"();T@-FI"WIN32OLE_RECORD;TcRDoc::NormalClass00