るりまサーチ

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

別のキーワード

  1. argf.class each_line
  2. argf.class each
  3. argf.class lines
  4. class new
  5. argf.class readline

ライブラリ

検索結果

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

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

...対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。

class
IeHandler
def initialize
@completed = false
end
attr_reader :completed
def onDocumentComplete(disp, uri)
disp.document.getElementsByT...
...xplorer.Application.1')
event = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
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などの呼び出しで...