Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > win32oleライブラリ > WIN32OLEクラス > ole_func_methods
ole_func_methods -> [WIN32OLE_METHOD]
オブジェクトのファンクション情報をWIN32OLE_METHODの配列として返します。
ole_func_methodsメソッドは、OLEオートメーションサーバのメソッドのうちファンクション(何らかの機能的な操作)に属するものをWIN32OLE_METHODの配列として返します。
excel = WIN32OLE.new('Excel.Application') excel.visible = true excel.ole_func_methods.each do |fun| if fun.name.upcase == 'QUIT' excel._invoke(fun.dispid, [], []) break end end
[SEE_ALSO] WIN32OLE#ole_methods
[SEE_ALSO] WIN32OLE#ole_get_methods
[SEE_ALSO] WIN32OLE#ole_put_methods