るりまサーチ

最速Rubyリファレンスマニュアル検索!
192件ヒット [101-192件を表示] (0.068秒)

別のキーワード

  1. ftp quit
  2. smtp quit
  3. net/ftp quit
  4. net/smtp quit
  5. quit net/ftp

ライブラリ

クラス

検索結果

<< < 1 2 >>

WIN32OLE#each {|i|...} -> () (7.0)

オブジェクトの列挙インターフェイスを呼び出してアイテム単位にブロックを 実行します。

...イスをサポートしてい
ない場合に通知します。

excel = WIN32OLE.new('Excel.Application')
book = excel.workbooks.add
sheets = book.worksheets(1)
cells = sheets.cells("A1:A5")
cells.each do |cell|
cell.value = 10
end
excel.Quit...

WIN32OLE#ole_free -> () (7.0)

selfが参照するCOMオブジェクトを解放します。

...クトに対
する操作は行えません。

excel = WIN32OLE.new('Excel.Application')
excel.ole_free # オブジェクトの解放
excel.Quit #=> RuntimeError (failed to get Dispatch Interface)

通常は利用されなくなったWIN32OLEオブジェクトはGCのタイミングで...

WIN32OLE#ole_func_methods -> [WIN32OLE_METHOD] (7.0)

オブジェクトのファンクション情報を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 WIN32OLE#ole_methods, WIN32OLE#ole_get_methods,
WIN32OLE#ole_put_...

WIN32OLE#ole_method(method) -> WIN32OLE_METHOD (7.0)

メソッド名を指定して対応するWIN32OLE_METHODオブジェクトを取得しま す。

...meError 指定したメソッド名が未定義あるいは型情報ラ
イブラリ(TypeLib)が提供されていない場合など
に発生します。

excel = WIN32OLE.new('Excel.Application')
method = excel.ole_method_help('Quit')...

WIN32OLE#ole_method_help(method) -> WIN32OLE_METHOD (7.0)

メソッド名を指定して対応するWIN32OLE_METHODオブジェクトを取得しま す。

...meError 指定したメソッド名が未定義あるいは型情報ラ
イブラリ(TypeLib)が提供されていない場合など
に発生します。

excel = WIN32OLE.new('Excel.Application')
method = excel.ole_method_help('Quit')...

絞り込み条件を変える

WIN32OLE#ole_respond_to?(name) -> bool (7.0)

指定したメソッドをオブジェクトがサポートしているか調べます。

...ド名を文字列またはシンボルで指定します。

@return nameで指定したメソッドをオブジェクトが提供していれば真を返します。

excel = WIN32OLE.new('Excel.Application')
excel.ole_respond_to?(:quit) #=> true
excel.ole_respond_to?(:exit) #=> false...

WIN32OLE_EVENT#handler=(obj) -> () (7.0)

イベント処理を実行するオブジェクトを登録します。

...event.handler = IeHandler.new
ie.Navigate2 'http://www.ruby-lang.org/ja/'
loop do
break if event.handler.completed
WIN32OLE_EVENT.message_loop
end
ie.Quit

WIN32OLE_EVENT#on_eventなどの呼び出しでブロックが登録されている場
合、そちらが優先されます。...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (7.0)

型が持つソースインターフェイスを取得します。

...ndler = WebEvent.new
ctl.navigate2 'http://www.ruby-lang.org/'
loop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit

このプログラムを実行するとWindows7のIE8環境では以下のような出力を得られ
ます。

2010-10-06 22:33:54 +0900: Prope...
<< < 1 2 >>