るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.017秒)
トップページ > クエリ:args[x] > クエリ:initialize[x] > クラス:WIN32OLE_EVENT[x]

別のキーワード

  1. rake empty_task_args
  2. parseerror args
  3. _builtin args
  4. closure args
  5. configfile args

ライブラリ

検索結果

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

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

...r
def initialize
@completed = false
end
attr_reader :completed
def onDocumentComplete(disp, uri)
disp.document.getElementsByTagName('a').each do |e|
puts "#{e.innerHTML}=#{e.href}"
end
@completed = true
end
def method_missing(id, *args)
p...
...o_s}, args=#{args.inspect}"
end
end

ie = WIN32OLE.new('InternetExplorer.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
.mess...
...age_loop
end
ie.Quit

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