るりまサーチ

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

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. matchdata end

ライブラリ

検索結果

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (49.0)

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

...
ベントの通知元となるインターフェイス)を返します。

@return デフォルトのソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大で...
...2
require 'win32ole'

type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source = type.default_event_sources[0]
class WebEvent
def initialize
@completed = false
end

attr_reader :completed
end

source.ole_methods.each do |m...
...pleted = true
end

puts "#{Time.now}: #{m.name} was called"
p arg
end

end

end

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

ctl.Quit...