ライブラリ
- ビルトイン (267)
-
cgi
/ core (24) - erb (12)
- expect (24)
-
io
/ wait (36) -
irb
/ output-method (72) - kconv (48)
-
minitest
/ unit (1) - mkmf (12)
- monitor (18)
-
net
/ ftp (48) -
net
/ http (146) -
net
/ imap (24) -
net
/ pop (48) -
net
/ smtp (48) - openssl (72)
- prettyprint (12)
- rake (12)
- resolv (12)
-
rexml
/ document (132) - rss (192)
-
rubygems
/ package / tar _ output (24) -
rubygems
/ source _ index (12) -
rubygems
/ user _ interaction (12) -
shell
/ filter (18) - stringio (48)
- strscan (24)
- thread (2)
- timeout (16)
- tracer (12)
- uri (24)
-
webrick
/ cgi (12) -
webrick
/ log (12) - win32ole (48)
- zlib (72)
クラス
-
ARGF
. class (24) - Array (33)
- CGI (24)
- ERB (12)
-
Encoding
:: Converter (12) - File (12)
-
Gem
:: Package :: TarOutput (24) -
Gem
:: SourceIndex (12) -
Gem
:: StreamUI (12) - IO (116)
-
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) - Integer (48)
- MatchData (24)
-
MiniTest
:: Unit (1) - Monitor (6)
-
MonitorMixin
:: ConditionVariable (12) - Mutex (2)
-
Net
:: FTP (48) -
Net
:: HTTP (146) -
Net
:: IMAP (12) -
Net
:: IMAP :: Address (12) -
Net
:: POP3 (48) -
Net
:: SMTP (48) - Object (12)
-
OpenSSL
:: SSL :: SSLContext (48) -
OpenSSL
:: SSL :: Session (24) - PrettyPrint (12)
-
RDoc
:: Options (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: NotationDecl (12) -
RSS
:: ImageFaviconModel :: ImageFavicon (24) -
RSS
:: ImageItemModel :: ImageItem (24) -
RSS
:: RDF :: Channel :: ImageFavicon (24) -
RSS
:: RDF :: Image (24) -
RSS
:: RDF :: Item (24) -
RSS
:: RDF :: Textinput (24) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (24) -
Rake
:: Application (12) -
Resolv
:: DNS (12) -
Shell
:: Filter (18) - String (72)
- StringIO (48)
- StringScanner (24)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) - Tracer (12)
-
URI
:: Generic (24) -
WEBrick
:: BasicLog (12) -
WEBrick
:: CGI (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ PARAM (36) -
Zlib
:: GzipReader (12) -
Zlib
:: Inflate (12) -
Zlib
:: ZStream (48)
モジュール
- Kernel (28)
-
RSS
:: RootElementMixin (24)
キーワード
- << (12)
- > (6)
- >> (6)
- about (84)
- about= (84)
-
add
_ gem _ contents (12) -
add
_ signatures (12) -
avail
_ out (12) -
avail
_ out= (12) - begin (12)
- chmod (12)
- chr (24)
-
continue
_ timeout (12) -
continue
_ timeout= (12) -
cpp
_ command (12) - digits (24)
- display (12)
- end (12)
- expect (24)
- fatal (12)
- fetch (12)
-
flush
_ next _ out (12) -
force
_ output (12) -
force
_ output= (12) - header (12)
- input? (12)
-
insert
_ output (12) - kconv (12)
-
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - logout (12)
-
on
_ event _ with _ outargs (12) -
open
_ timeout (48) -
open
_ timeout= (48) - outdated (12)
- output (12)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - outs (12)
- pack (21)
- pointer= (12)
- pos= (12)
- pp (12)
- ppx (12)
- pread (8)
- print (24)
- printn (12)
- puts (12)
- read (24)
-
read
_ nonblock (36) -
read
_ timeout (48) -
read
_ timeout= (48) - readpartial (48)
- retval? (12)
- route (12)
-
route
_ from (12) -
route
_ to (12) -
set
_ debug _ output (12) -
set
_ eoutvar (12) - sleep (12)
-
ssl
_ timeout (24) -
ssl
_ timeout= (24) - start (12)
- status (1)
- stdout (12)
- sysread (24)
- timeout (40)
- timeout= (24)
- timeouts= (12)
-
to
_ f (12) -
total
_ out (12) - toutf16 (12)
- toutf32 (12)
- toutf8 (12)
-
tty
_ output= (12) - unpack (12)
- wait (36)
-
wait
_ for _ cond (6) -
wait
_ readable (12) -
wait
_ writable (12) - write (132)
-
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
-
CGI
# out(options = "text / html") { . . . . } (21220.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...t が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new......cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string
cgi.out({"nph" => t......"connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (21214.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls"... -
Encoding
:: Converter # insert _ output(string) -> nil (15301.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
...m string 挿入する文字列
//emlist[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is ", "."]
ec.insert_output(......r>")
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is <err>.", ""]
ec = Encoding::Converter.new("utf-8", "iso-2022-jp")
src = "\u{306F 3041 3068 2661 3002}" # U+2661 is not representable in iso-2022-jp
dst = ""
p ec.primitive_convert(s......rc, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H".force_encoding("ISO-2022-JP"), "\xE3\ x80\x82"]
ec.insert_output "?" # state change required to output "?".
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}... -
Net
:: HTTP # continue _ timeout -> Integer | nil (12301.0) -
「100 Continue」レスポンスを待つ秒数を返します。
...「100 Continue」レスポンスを待つ秒数を返します。
この秒数待ってもレスポンスが来ない場合は
リクエストボディを送信します。
デフォルトは nil (待たない)です。
@see Net::HTTP#continue_timeout=... -
Kernel
# timeout(sec) {|i| . . . . } -> object (12209.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なし......param exception_class タイムアウトした時、発生させる例外を指定します.
=== 注意
timeout による割り込みは Thread によって実現されています。C 言語
レベルで実装され、Ruby のスレッドが割り込めない処理に対して
timeout は無力... -
Kernel
# timeout(sec , exception _ class = nil) {|i| . . . . } -> object (12209.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはいります。
また sec が 0 もしくは nil のときは制限時間なし......param exception_class タイムアウトした時、発生させる例外を指定します.
=== 注意
timeout による割り込みは Thread によって実現されています。C 言語
レベルで実装され、Ruby のスレッドが割り込めない処理に対して
timeout は無力... -
Zlib
:: ZStream # avail _ out -> Integer (12202.0) -
出力バッファの空き用量をバイト数で返します。 空きは必要な時に動的に確保されるため、通常は 0 です。
出力バッファの空き用量をバイト数で返します。
空きは必要な時に動的に確保されるため、通常は 0 です。 -
Zlib
:: ZStream # avail _ out=(size) (12202.0) -
出力側のバッファに size バイトの空きを確保します。 すでに size バイト以上の空きがある場合、バッファは 縮められます。空きは必要な時に動的に確保されるため、通常 このメソッドを使う必要はありません。
...バッファに size バイトの空きを確保します。
すでに size バイト以上の空きがある場合、バッファは
縮められます。空きは必要な時に動的に確保されるため、通常
このメソッドを使う必要はありません。
@param size 出力バッ......ファのサイズを整数で指定します。
@return size を返します。... -
MonitorMixin
:: ConditionVariable # wait(timeout = nil) -> bool (12201.0) -
モニタのロックを開放し、現在のスレッドを停止します。
...クを保持している必要があります。
MonitorMixin::ConditionVariable#signal や
MonitorMixin::ConditionVariable#broadcast
で起こされるまでスレッドは停止し続けます。
timeout を与えた場合は最大 timeout 秒まで停止した後にスレッドを
再開しま......よって危険領域(critical section)上で動作している
スレッドはただ一つになり、排他を実現します。
true を返します。timeout が与えられていて待ち時間が timeout を
越えた場合は false を返します。
@param timeout タイムアウトまで......の秒数。指定しなかった場合はタイムアウトしません。
@raise ThreadError ロックを持っていないスレッドがこのメソッドを呼びだした場合に発生します
@see MonitorMixin::ConditionVariable#wait_while, MonitorMixin::ConditionVariable#wait_until... -
Net
:: FTP # open _ timeout -> Numeric|nil (12201.0) -
接続時のタイムアウトの秒数を返します。
...たってもコネクションが
開かなければ例外 Net::OpenTimeout を発生します。
整数以外での浮動小数点数や分数を指定することができます。
デフォルトは nil(タイムアウトしない)です。
@see Net::HTTP#read_timeout, Net::HTTP#open_timeout=...