60件ヒット
[1-60件を表示]
(0.039秒)
別のキーワード
種類
- インスタンスメソッド (36)
- 特異メソッド (24)
ライブラリ
- psych (24)
-
webrick
/ httpproxy (12) - win32ole (24)
クラス
-
Psych
:: Parser (24) -
WEBrick
:: HTTPProxyServer (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ TYPE (12)
キーワード
-
default
_ event _ sources (12) - new (24)
検索結果
先頭5件
-
WIN32OLE
_ EVENT # handler=(obj) -> () (18124.0) -
イベント処理を実行するオブジェクトを登録します。
...するため、正確な記述が必要です。
@param obj イベントに対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。
class IeHandler
def initialize
@completed = false
end
attr_reader :comple......#{e.href}"
end
@completed = true
end
def method_missing(id, *args)
puts "event=#{id.to_s}, args=#{args.inspect}"
end
end
ie = WIN32OLE.new('InternetExplorer.Application.1')
event = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents2')
event.handler = IeHandler.new
ie.... -
Psych
:: Parser # handler=(val) (18112.0) -
イベントハンドラをセットします。
...イベントハンドラをセットします。
@param val セットするハンドラ
@see Psych::Parser#handler=... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (30.0) -
型が持つソースインターフェイスを取得します。
...ポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォルトのソースインターフェイスをWIN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デ......class WebEvent
def initialize
@completed = false
end
attr_reader :completed
end
source.ole_methods.each do |m|
WebEvent.module_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.navigate2 'http://www.ruby-lang.org/'
loop do
break if evt.handler.completed
WIN32OLE_EVENT.message_loop
end
ctl.Quit
このプログラムを実行... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (18.0) -
プロクシオブジェクトを生成して返します。
...プロクシオブジェクトを生成して返します。
@param config 設定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが......。
nil を指定した場合なにもしません。デフォルトは nil です。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
handler = proc{|req, res|
res.body.gsub!(/です。/, 'でんがな。')
res.body.gsub!(/ます。/, 'まんがな。')
}
s = WEBrick::HTTPProxyS......の Proxy の URI
を URI オブジェクトで指定します。
//emlist{
require 'uri'
require 'webrick/httpproxy'
u = URI.parse('http://localhost:18080/')
s = WEBrick::HTTPProxyServer.new(ProxyURI: u, Port: 8080)
//}
@param default デフォルトは WEBrick::Config::HTTP です。... -
Psych
:: Parser . new(handler = Handler . new) -> Psych :: Parser (7.0) -
新たなパーサオブジェクトを生成して返します。
...新たなパーサオブジェクトを生成して返します。
handler で YAML のイベントを処理するハンドラを指定します。
詳しくは Psych::Parser を参照してください。
@param handler YAML のイベントを処理するハンドラ...