るりまサーチ

最速Rubyリファレンスマニュアル検索!
228件ヒット [201-228件を表示] (0.081秒)

別のキーワード

  1. string []=
  2. string slice!
  3. string slice
  4. string []
  5. string gsub!

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 >>

Psych::Nodes::Node#to_yaml(io=nil, options={}) -> String | IO (121.0)

AST を YAML ドキュメントに変換します。

...

: :version
YAML document に付加するバージョンを [major, minor] という配列、
もしくは文字列で指定します
: :header
出力にヘッダを付けるかどうかを真偽値で指定します
: :indentation
インデントのレベルを 1 から 9 までの整...
...数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します

@param io 書き込み先の IO
@param options オプション...

Psych::Nodes::Node#yaml(io=nil, options={}) -> String | IO (121.0)

AST を YAML ドキュメントに変換します。

...

: :version
YAML document に付加するバージョンを [major, minor] という配列、
もしくは文字列で指定します
: :header
出力にヘッダを付けるかどうかを真偽値で指定します
: :indentation
インデントのレベルを 1 から 9 までの整...
...数で指定します
: :canonical
出力の style が canonical であるかどうかを真偽値で指定します
: :line_width
「好ましい」行幅を整数値で指定します

@param io 書き込み先の IO
@param options オプション...

CGI#out(options = "text/html") { .... } (55.0)

HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。

...@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" => true,
"status" => "OK", # == "200 OK"
"server" => ENV['SERVER_SOFTWARE'],
"connection" => "close",...
...tml; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }

@see CGI#header...
<< < 1 2 3 >>