ライブラリ
クラス
-
ARGF
. class (38) - IO (38)
-
Net
:: FTP (48) -
Net
:: HTTPResponse (12) -
Net
:: IMAP :: ResponseCode (24) -
Net
:: IMAP :: ResponseText (12) -
OpenSSL
:: Config (12) -
OpenSSL
:: OCSP :: BasicResponse (12) -
RDoc
:: CodeObject (216) - String (153)
- StringIO (38)
-
URI
:: FTP (24) -
Win32
:: Registry :: Error (12) -
Zlib
:: GzipFile (12)
モジュール
-
CGI
:: HtmlExtension (24) -
RSS
:: ContentModel (24)
キーワード
- codepoints (66)
- comment (12)
- comment= (12)
-
content
_ encoded (12) -
content
_ encoded= (12) - data (12)
-
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) - documented? (12)
- each (12)
-
each
_ codepoint (96) - encode (36)
- encode! (24)
- form (24)
- kconv (12)
-
last
_ response _ code (12) - lastresp (12)
- name (12)
-
os
_ code (12) - parent (12)
- parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) -
remove
_ classes _ and _ modules (12) -
remove
_ methods _ etc (12) -
return
_ code (12) -
return
_ code= (12) - section (12)
- section= (12)
-
start
_ doc (12) - status (12)
-
stop
_ doc (12) - typecode (12)
- typecode= (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11)
検索結果
先頭5件
-
Net
:: IMAP :: ResponseText # code -> Net :: IMAP :: ResponseCode | nil (24408.0) -
レスポンスコードを返します。
...レスポンスコードを返します。
応答がレスポンスコードを含んでいない場合は nil を返します。
@see Net::IMAP::ResponseCode... -
Net
:: HTTPResponse # code -> String (24208.0) -
HTTP のリザルトコードです。例えば '302' などです。
...スオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。
//emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}... -
Win32
:: Registry :: Error # code (24202.0) -
@todo
@todo -
RSS
:: ContentModel # content _ encoded (21301.0) -
@todo
@todo -
RSS
:: ContentModel # content _ encoded= (21301.0) -
@todo
@todo -
String
# encode(encoding , from _ encoding , **options) -> String (12449.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
@param encoding 変換先のエ......ンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param from_encoding 変換元のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param option 変換オプションをキーワード引数で与えま......nil
変換元のエンコーディングにおいて不正なバイトがあった場合に、例外 Encoding::InvalidByteSequenceError を投げます。(デフォルト)
: :invalid => :replace
変換元のエンコーディングにおいて不正なバイトがあった場合に、不正な... -
String
# codepoints {|codepoint| block } -> self (12401.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。
Ruby 2.6 までは deprecat......ed の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
String
# encode!(encoding , from _ encoding , options = nil) -> self (12401.0) -
self を指定したエンコーディングに変換し、自身を置き換えます。引数を2つ 与えた場合、第二引数は変換元のエンコーディングを意味します。さもなくば self のエンコーディングが使われます。変換後の self を返します。
...なくても self を返します。
@param encoding 変換先のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param from_encoding 変換元のエンコーディングを表す文字列か Encoding オブジェクトを指定します。
@ret......urn 変換後のself
//emlist[例][ruby]{
#coding:UTF-8
s = "いろは"
s.encode!("EUC-JP")
s.encode!(Encoding::UTF_8)
//}
@see String#encode... -
StringIO
# codepoints {|codepoint| . . . } -> self (12401.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint...