65件ヒット
[1-65件を表示]
(0.063秒)
種類
- インスタンスメソッド (33)
- 文書 (21)
- 特異メソッド (11)
ライブラリ
-
cgi
/ core (22) -
irb
/ context (11) - zlib (11)
クラス
- CGI (22)
-
IRB
:: Context (11) -
Zlib
:: ZStream (11)
キーワード
-
NEWS for Ruby 2
. 2 . 0 (10) -
flush
_ next _ out (11) - header (11)
- new (11)
-
ruby 1
. 6 feature (11)
検索結果
先頭5件
-
CGI
# out(options = "text / html") { . . . . } (18249.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...ew
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"......ENV['SERVER_SOFTWARE'],
"connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Ti......me.now + (3600 * 24 * 30),
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }
@see CGI#header... -
Zlib
:: ZStream # flush _ next _ out -> String (12302.0) -
出力バッファに残っているデータを強制的に取り出します。
出力バッファに残っているデータを強制的に取り出します。 -
IRB
:: Context . new(irb , workspace = nil , input _ method = nil , output _ method = nil) -> IRB :: Context (3206.0) -
自身を初期化します。
...た場合は新しく作成されます。
@param input_method String、IRB::InputMethod のサブクラスの
オブジェクト、nil のいずれかを指定します。
@param output_method IRB::OutputMethod のサブクラスのオブジェクト......を指定します。省略した場合は
IRB::StdioOutputMethod オブジェクトが新しく
作成されます。... -
ruby 1
. 6 feature (324.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...りました。
p "#{ "" }"
=> ruby 1.6.7 (2002-03-01) [i586-linux]
""
=> -:1: warning: bad substitution in string
ruby 1.6.7 (2002-09-12) [i586-linux]
"#{ }"
=> ruby 1.6.7 (2002-09-25) [i586-linux]
""
これは1.7......。(String#[]やString#slice と同じ結果を返すと
いうことです)
p "foo".slice!("bar") # <- 以前からこちらは nil を返していた
p "foo".slice!(5,10)
=> ruby 1.6.7 (2002-03-01) [i586-linux]
nil
-:2:in `slice!': index 5 out of......のようなスクリプトでTEXT_PLAINが"text/plain; charset=iso-8859-1"
のように書き換えられていました。
((<ruby-dev:14716>))
require 'cgi'
TEXT_PLAIN = "text/plain"
cgi = CGI.new
print cgi.header("type" => TEXT_PLAIN,... -
CGI
# header(options = "text / html") -> String (233.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキ......ーとしては以下が利用可能です。
: type
Content-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真ならば、HTTP のバージョン......HTTP ヘッダを生成するための情報を指定します。
例:
header
# Content-Type: text/html
header("text/plain")
# Content-Type: text/plain
header({"nph" => true,
"status" => "OK", # == "200 OK"... -
NEWS for Ruby 2
. 2 . 0 (72.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...Enumerable#max, Enumerable#max_by
は複数の値を返すためのオプションをサポートしました
* Float
* 追加: Float#next_float
* 追加: Float#prev_float
* File
* 追加: File.birthtime
* 追加: File#birthtime
* File::Stat
* 追加: File::Stat#b......out, :err] からリダイレクト
されたファイルを書き込みモードで開くようになりました
* String
* 追加: String#unicode_normalize
* 追加: String#unicode_normalize!
* 追加: String#unicode_normalized?
* Symbol
* 改善: String#to_sym, String......an array is yielded and its length
matches.
* Process
* Process.spawn のようなプロセスを起動するようなメソッドは [:out, :err]
からリダイレクトされるファイルを書き込みモードで開きます。Ruby 2.2以前は読み込みモードで開い...