203件ヒット
[1-100件を表示]
(0.090秒)
ライブラリ
- ビルトイン (66)
- etc (55)
-
minitest
/ unit (1) -
rubygems
/ commands / unpack _ command (11) -
webrick
/ httpresponse (11)
クラス
モジュール
- Etc (55)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
SC
_ 2 _ FORT _ RUN (11) -
SC
_ 2 _ PBS _ ACCOUNTING (11) -
SC
_ THREAD _ SAFE _ FUNCTIONS (11) -
SC
_ XOPEN _ UNIX (11) - UndefinedConversionError (11)
- chunked= (11)
-
destination
_ encoding (11) -
destination
_ encoding _ name (11) -
error
_ char (11) -
get
_ path (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 5 feature (11) -
rubygems
/ commands / uninstall _ command (11) -
rubygems
/ commands / unpack _ command (11) -
source
_ encoding (11) -
source
_ encoding _ name (11) - uname (11)
検索結果
先頭5件
-
MiniTest
:: Unit :: VERSION -> String (21201.0) -
このライブラリのバージョンを返します。
このライブラリのバージョンを返します。 -
Encoding
:: UndefinedConversionError (12114.0) -
エンコーディング変換後の文字が存在しない場合に発生する例外。
...ない場合に発生する例外。
UTF-8 にしかない文字を EUC-JP に変換しようとした場合などに発生します。
//emlist[例][ruby]{
"\u2603".encode(Encoding::EUC_JP)
#=> Encoding::UndefinedConversionError: U+2603 from UTF-8 to EUC-JP
//}
変換が多段階でなされ、......Encoding::Converter.new("ISO-8859-1", "EUC-JP")
# ISO-8859-1 -> UTF-8 -> EUC-JP
begin
ec.convert("\xa0")
# NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
rescue Encoding::UndefinedConversionError
p $!.source_encoding #=> #<Encoding:UTF-8>
p $!.destination_encodi......ng #=> #<Encoding:EUC-JP>
p $!.source_encoding_name #=> "UTF-8"
p $!.destination_encoding_name #=> "EUC-JP"
puts $!.error_char.dump #=> "\u{a0}"
p $!.error_char.encoding #=> #<Encoding:UTF-8>
end
//}... -
Etc
. # uname -> {Symbol => String} (6230.0) -
uname(2) で取得したシステム情報を Hash で返します。
...
uname(2) で取得したシステム情報を Hash で返します。
@return 少なくとも :sysname, :nodename, :release, :version, :machine の
5 つのキーを持つ Hash を返します。
//emlist[例][ruby]{
require 'etc'
require 'pp'
pp Etc.uname
# => {:sysname=>"Linux",
#......:nodename=>"boron",
# :release=>"2.6.18-6-xen-686",
# :version=>"#1 SMP Thu Nov 5 19:54:42 UTC 2009",
# :machine=>"i686"}
//}... -
WEBrick
:: HTTPResponse # chunked=(flag) (6118.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...(エンティティボディ)を chunk に分けるようになります。
自身の WEBrick::HTTPResponse#request_http_version が 1.0 以下である場合、この値は無視されます。
@param flag true を指定した場合、レスポンスを chunk に分けてクライアントに返......ick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 09:04:28 GMT
Server:
Transfer-Encoding: chunked
4
hoge
0
#... -
Encoding
:: UndefinedConversionError # error _ char -> String (6112.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}... -
rubygems
/ commands / uninstall _ command (6108.0) -
Gem パッケージをアンインストールするためのライブラリです。
...ge: gem uninstall GEMNAME [GEMNAME ...] [options]
Options:
-a, --[no-]all Uninstall all matching versions
-I, --[no-]ignore-dependencies Ignore dependency requirements while
uninstalling
-x, --[no-]executables Uninstall......irmation
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--platform PLATFORM Specify the platform of gem to uninstall......Common Options:
-h, --help このコマンドのヘルプを表示します
-V, --[no-]verbose 表示を詳細にします
-q, --quiet 静かに実行します
--config-file FILE 指定された設定... -
Encoding
:: UndefinedConversionError # destination _ encoding -> Encoding (6100.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (6100.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding -> Encoding (6100.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...ーディングを Encoding
オブジェクトで返します。
変換が多段階になされる場合は元の文字列のものではない
エンコーディングが返される場合があることに注意してください。
@see Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: UndefinedConversionError # source _ encoding _ name -> Encoding (6100.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#source_encoding...