typename -> StringRuby 3.0 から[permalink][rdoc][edit]-
selfが表すVT_RECORD OLE変数の型名(構造体名)を返します。
- [RETURN]
- VT_RECORD OLE変数の型名を文字列で返します。
require 'win32ole' obj = WIN32OLE.new('ComServer.ComClass') book = obj.getBook book.typename # => "Book"
typename -> StringRuby 3.0 から[permalink][rdoc][edit]selfが表すVT_RECORD OLE変数の型名(構造体名)を返します。
require 'win32ole'
obj = WIN32OLE.new('ComServer.ComClass')
book = obj.getBook
book.typename # => "Book"