121件ヒット
[1-100件を表示]
(0.036秒)
種類
- インスタンスメソッド (66)
- 文書 (22)
- 定数 (11)
- クラス (11)
- 特異メソッド (11)
ライブラリ
- psych (44)
-
webrick
/ config (11) -
webrick
/ httpproxy (11) - win32ole (33)
クラス
-
Psych
:: Handler (33) -
WEBrick
:: HTTPProxyServer (11) -
WIN32OLE
_ EVENT (22) -
WIN32OLE
_ TYPE (11)
モジュール
-
WEBrick
:: Config (11)
キーワード
- Emitter (11)
- FileHandler (11)
-
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
default
_ event _ sources (11) - handler= (11)
- new (11)
-
ruby 1
. 8 . 4 feature (11) - scalar (11)
-
start
_ mapping (11) -
start
_ sequence (11)
検索結果
先頭5件
-
WIN32OLE
_ EVENT # handler -> object (18123.0) -
WIN32OLE_EVENT#handler=メソッドで登録したイベントハンドラオブジェ クトを返します。
...WIN32OLE_EVENT#handler=メソッドで登録したイベントハンドラオブジェ
クトを返します。
@return イベントハンドラオブジェクト。未登録ならばnil。... -
WEBrick
:: Config :: FileHandler -> Hash (6124.0) -
WEBrick::HTTPServlet::FileHandler の設定のデフォルト値を保持したハッシュです。
...ervlet::FileHandler の設定のデフォルト値を保持したハッシュです。
require 'webrick'
WEBrick::Config::FileHandler = {
:NondisclosureName => [".ht*", "*~"],
:FancyIndexing => false,
:HandlerTable => {},
:HandlerCallback => nil,
:Di......rectoryCallback => nil,
:FileCallback => nil,
:UserDir => nil, # e.g. "public_html"
:AcceptableLanguages => [] # ["en", "ja", ... ]
}
: :AcceptableLanguages
コンテンツの言語を選択するオプション。設定値は文字列の配列。
クライ......れるAccept-Languageの内容がfrで、
かつ:AcceptableLanguagesには['ja', 'en']が設定されている場合、
WEBrick::HTTPServlet::FileHandlerは以下の順番でファイルを探す。
(1) index.html
(2) index.html.fr
(3) index.html.ja
(4) index.html.en
: :FancyIndexing
クラ... -
WIN32OLE
_ EVENT # handler=(obj) -> () (6119.0) -
イベント処理を実行するオブジェクトを登録します。
...aram obj イベントに対応するメソッドを持つオブジェクト。イベント受信を
解除するにはnilを指定します。
class IeHandler
def initialize
@completed = false
end
attr_reader :completed
def onDocumentComplete(disp, uri)
disp......'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.message_loop
end
ie.Quit
WIN32OLE_EVENT#on_eventなどの呼... -
Psych
:: Handler # scalar(value , anchor , tag , plain , quoted , style) -> () (3048.0) -
スカラー値を見付けたときに呼び出されます。
...r の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag にはスカラー値に関連付けられた tag の名前が文字列で渡されます。
tag がない場合には nil が渡されます。
plain は plain style であるかどうか、quo......nchor tag plain quoted style
["foo", nil, "!str", false, false, 3 ]
["fun", "anchor", nil, true, false, 1 ]
["many lines", nil, nil, true, false, 1 ]
["many\nnewlines\n", nil, nil, false, true, 4 ]... -
Psych
:: Handler # start _ mapping(anchor , tag , implicit , style) -> () (3036.0) -
mapping の開始を見付けたときに呼び出されます。
...anchor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には map に関連付けられた tag の名前が文字列で渡されます。
tag がない場合には nil が渡されます。
implicit には map が implicit に開始されたか......ng メソッドは 順に以下の引数で呼び出されます。
# anchor tag implicit style
[nil, nil, true, 1 ]
[nil, "tag:yaml.org,2002:map", false, 2 ]
["pewpew", nil, true, 1 ]... -
Psych
:: Handler # start _ sequence(anchor , tag , implicit , style) -> () (3036.0) -
sequence の開始を見付けたときに呼び出されます。
...chor の名前が文字列で渡されます。
anchor がない場合には nil が渡されます。
tag には sequence に関連付けられた tag の名前が文字列で渡されます。
tag がない場合には nil が渡されます。
implicit には sequence が implicit に開始さ......ce メソッドは 順に以下の引数で呼び出されます。
# anchor tag implicit style
[nil, nil, true, 1 ]
[nil, "tag:yaml.org,2002:seq", false, 2 ]
["pewpew", nil, true, 1 ]... -
Psych
:: Emitter (66.0) -
Psych::Parser でパースし、生じたイベントから YAML ドキュメントを再構築するようなハンドラです。
...いては Psych::Handler を参照してください。
require 'psych'
require 'stringio'
output = StringIO.new
emitter = Psych::Emitter.new(output)
emitter.start_stream(Psych::Parser::UTF8)
emitter.start_document([1, 1], [], false)
emitter.start_mapping(nil, nil, false, Psych::......ing::BLOCK)
emitter.scalar("a", nil, nil, true, false, Psych::Nodes::Scalar::PLAIN)
emitter.scalar("12", nil, nil, true, false, Psych::Nodes::Scalar::PLAIN)
emitter.scalar("xyz", nil, nil, true, false, Psych::Nodes::Scalar::PLAIN)
emitter.scalar("23", nil, nil, false, true, Psych::Nodes::Sca... -
NEWS for Ruby 2
. 5 . 0 (42.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...7688
* 数値の比較メソッド(<,<=,>=,>)は、coerceメソッドで発生した例外を隠蔽しなくなりました。
coerceがnilを返す場合、変換は不可能です。7688
* Process
* getrusage(2) が存在する場合 Process.#times の精度を改良しまし......l".freeze と同じです) 13295
* String#casecmp, String#casecmp? に文字列でない引数を与えた場合、TypeErrorを発生させずにnilを返すようにしました
13312
* String#start_with? は正規表現を受け取れるようになりました 13712
* String#del......ch.load, Psych.safe_load like JSON.parse
https://github.com/ruby/psych/pull/333, https://github.com/ruby/psych/pull/337
* Add Psych::Handler#event_location
https://github.com/ruby/psych/pull/326
* Make frozen string literal = true
https://github.com/ruby/psych/pul... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (36.0) -
プロクシオブジェクトを生成して返します。
...。
認証に失敗した場合 proc は適切な例外を発生させなければいけません。nil を指定した場合すべての接続を
受け付けます。デフォルトは nil です。通常は WEBrick::HTTPAuth::ProxyBasicAuth か
WEBrick::HTTPAuth::ProxyDigestAuth を使用......roxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyContentHandler
接続先の HTTP サーバからの内容を処理する Proc オブジェクトを指定します。
レスポンスの内容を書き換......クトを引数として proc.call(req, res) のように呼ばれます。
nil を指定した場合なにもしません。デフォルトは nil です。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
handler = proc{|req, res|
res.body.gsub!(/です。/, 'でんがな。')
re... -
ruby 1
. 8 . 4 feature (30.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...1.8.4 feature/"optparse">))
* ((<ruby 1.8.4 feature/"find">))
* ((<ruby 1.8.4 feature/Iconv>))
* ((<ruby 1.8.4 feature/WEBrick::Config::FileHandler [compat]>))
* ((<ruby 1.8.4 feature/WEBrick>))
* ((<ruby 1.8.4 feature/WEBrick::HTTPRequest#query_string= [new]>))
* ((<ruby 1.8.4 feature/......[i686-linux]
0
nil
# => ruby 1.8.4 (2005-12-22) [i686-linux]
0
0
: シグナル [bug]
#Sun Oct 16 03:38:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
#
# * rubysig.h (CHECK_INTS): prevent signal handler to run during
# c......#
# ?
#: WEBrick
#Mon Oct 31 05:37:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
#
# * lib/webrick/httpservlet/cgihandler.rb
# (WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
# header field should be splited into each cookie. [ruby-Bugs:2199]
#
# *...