るりまサーチ

最速Rubyリファレンスマニュアル検索!
55件ヒット [1-55件を表示] (0.065秒)
トップページ > クエリ:l[x] > クエリ:Handler[x] > クエリ:handler=[x]

別のキーワード

  1. psych handler
  2. imap add_response_handler
  3. net/imap add_response_handler
  4. parser handler=
  5. parser handler

ライブラリ

キーワード

検索結果

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

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

...るにはnilを指定します。

class IeHandler
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 = tru...
...ie = WIN32OLE.new('InternetExplorer.Application.1')
event = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
event.handler = IeHandler.new
ie.Navigate2 'http://www.ruby-lang.org/ja/'
l
oop do
break if event.handler.completed
WIN32OLE_EVENT.message_loop
end
ie.Quit

WIN32OLE_EVENT#on_...

Psych::Parser#handler=(val) (30307.0)

イベントハンドラをセットします。

...イベントハンドラをセットします。

@param val セットするハンドラ
@see Psych::Parser#handler=...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (6124.0)

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

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

default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるイン...
...odule_eval do
define_method("on#{m.name}") do |*arg|
if arg[0] == "ページが表示されました"
@completed = true
end
puts "#{Time.now}: #{m.name} was called"
p arg
end
end
end
evt = WIN32OLE_EVENT.new(ctl)
evt.handler = WebEvent.new
ctl.na...
...'http://www.ruby-lang.org/'
l
oop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit

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

2010-10-06 22:33:54 +0900: PropertyChange was called
["{265b75c1-4...

Psych::Parser.new(handler = Handler.new) -> Psych::Parser (415.0)

新たなパーサオブジェクトを生成して返します。

...新たなパーサオブジェクトを生成して返します。

handler
で YAML のイベントを処理するハンドラを指定します。
詳しくは Psych::Parser を参照してください。

@param handler YAML のイベントを処理するハンドラ...

WEBrick::HTTPProxyServer.new(config, default = WEBrick::Config::HTTP) -> WEBrick::HTTPProxyServer (118.0)

プロクシオブジェクトを生成して返します。

...トを引数として
proc.call(req, res) のように呼ばれます。
認証に失敗した場合 proc は適切な例外を発生させなければいけません。nil を指定した場合すべての接続を
受け付けます。デフォルトは nil です。通常は WEBrick::HTTPAu...
...|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyContentHandler
...
...Request オブジェクトを引数として proc.call(req, res) のように呼ばれます。
nil を指定した場合なにもしません。デフォルトは nil です。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
handler =
proc{|req, res|
res.body.gsub!(/です。/, 'で...

絞り込み条件を変える