88件ヒット
[1-88件を表示]
(0.125秒)
ライブラリ
- ビルトイン (33)
-
cgi
/ core (11) -
irb
/ output-method (33) - prettyprint (11)
クラス
- Array (33)
- CGI (11)
-
IRB
:: OutputMethod (22) -
IRB
:: StdioOutputMethod (11) - PrettyPrint (11)
検索結果
先頭5件
-
IRB
:: OutputMethod # print(*objs) (21102.0) -
NotImplementedError が発生します。
NotImplementedError が発生します。
@param objs 任意のオブジェクトを指定します。
@raise NotImplementedError 必ず発生します。 -
IRB
:: StdioOutputMethod # print(*objs) -> nil (21102.0) -
引数を標準出力に出力します。
引数を標準出力に出力します。
@param objs 任意のオブジェクトを指定します。 -
IRB
:: OutputMethod # printn(*objs) -> nil (9101.0) -
各 obj を self に出力し、最後に改行を出力します。
各 obj を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
PrettyPrint
# output -> object (9101.0) -
自身の output を返します。
...自身の output を返します。... -
CGI
# header(options = "text / html") -> String (51.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキ......my_header1" => "my_value",
"my_header2" => "my_value"})
例:
cgi = CGI.new('html3')
print cgi.header({"charset" => "shift_jis", "status" => "OK"})
print "<html><head><title>TITLE</title></head>\r\n"
print "<body>BODY</body></html>\r\n"
@see 35911... -
Array
# fetch(nth) -> object (13.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}... -
Array
# fetch(nth) {|nth| . . . } -> object (13.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}... -
Array
# fetch(nth , ifnone) -> object (13.0) -
nth 番目の要素を返します。
...しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print "#{nth} はありません。\n"
999
}
p result #=> 999
//}...