instance method WIN32OLE_TYPELIB#major_version

major_version -> Integer[permalink][rdoc][edit]

TypeLibのメジャーバージョン番号を取得します。

[RETURN]
TypeLibのメジャーバージョン番号を整数で返します。
[EXCEPTION] WIN32OLERuntimeError:
TypeLibの属性が読み取れない場合に通知します。
tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 14.0 Object Library')
puts tlib.major_version # => 1