568件ヒット
[1-100件を表示]
(0.042秒)
種類
- 特異メソッド (292)
- 文書 (128)
- インスタンスメソッド (93)
- クラス (33)
- ライブラリ (22)
ライブラリ
- ビルトイン (264)
- csv (99)
-
irb
/ input-method (11) -
irb
/ magic-file (11) - openssl (11)
-
webrick
/ httprequest (11) -
webrick
/ httputils (11)
クラス
- CSV (88)
- Dir (116)
- IO (137)
-
IRB
:: FileInputMethod (11) -
OpenSSL
:: SSL :: SSLContext (11) -
WEBrick
:: HTTPRequest (11)
オブジェクト
-
IRB
:: MagicFile (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - CSV (11)
-
ENCODING
_ SPEC _ RE (11) - FormData (11)
- IO (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Ruby用語集 (11)
-
ca
_ file= (11) -
each
_ child (28) - entries (11)
-
external
_ encoding (11) -
for
_ fd (11) - foreach (55)
-
internal
_ encoding (11) - new (33)
- open (88)
- query (11)
- rdoc (11)
- read (44)
- readlines (11)
- rss (11)
-
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
set
_ encoding (33) -
set
_ encoding _ by _ bom (5) - 変数と定数 (11)
- 字句構造 (11)
検索結果
先頭5件
-
IRB
:: FileInputMethod # encoding -> Encoding (21202.0) -
読み込んだファイルの文字エンコーディングを返します。
読み込んだファイルの文字エンコーディングを返します。 -
IRB
:: MagicFile . ENCODING _ SPEC _ RE -> %r"coding\s*[=:]\s*([[:alnum:]\- _ ]+)" (9101.0) -
マジックコメントにマッチする正規表現を返します。
マジックコメントにマッチする正規表現を返します。 -
IO
# set _ encoding _ by _ bom -> Encoding | nil (6256.0) -
BOM から IO のエンコーディングを設定します。
...[例][ruby]{
File.write("bom.txt", "\u{FEFF}abc")
File.open("bom.txt", "rb") do |io|
p io.set_encoding_by_bom #=> #<Encoding:UTF-8>
str = io.read
p str #=> "abc"
p str.encoding #=> #<Encoding:UTF-8>
end
File.write("nobom.txt", "abc")
File.open("nobom.......txt", "rb") do |io|
p io.set_encoding_by_bom #=> nil
end
//}... -
IO
# external _ encoding -> Encoding | nil (6236.0) -
IO の外部エンコーディングを返します。 外部エンコーディングが指定されていない場合は nil を返します。 ただし読み込み専用モードの場合は Encoding.default_external になります。
...ディングが指定されていない場合は nil を返します。
ただし読み込み専用モードの場合は Encoding.default_external になります。
//emlist[例][ruby]{
IO.write("testfile", "abcde")
File.open("testfile") { |f| p f.external_encoding } # => #<Encoding:UTF-8>
//}... -
IO
# internal _ encoding -> Encoding | nil (6232.0) -
IO の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...エンコーディングが指定されていない場合は nil を返します。
//emlist[例][ruby]{
IO.write("testfile", "abcde")
File.open("testfile") do |f|
p f.internal_encoding # => nil
f.set_encoding("ASCII-8BIT", "EUC-JP")
p f.internal_encoding # => #<Encoding:EUC-JP>
end
//}... -
IO
# set _ encoding(enc _ str , **opts) -> self (6133.0) -
IO のエンコーディングを設定します。
...文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BI... -
IO
# set _ encoding(ext _ enc) -> self (6133.0) -
IO のエンコーディングを設定します。
...文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BI... -
IO
# set _ encoding(ext _ enc , int _ enc , **opts) -> self (6133.0) -
IO のエンコーディングを設定します。
...文字列か Encoding オブジェクトを指定します。
@param int_enc 内部エンコーディングを表す文字列か Encoding オブジェクトを指定します。
@param opts エンコーディング変換のオプション
例:
io = File.open(file)
io.set_encoding("ASCII-8BI... -
OpenSSL
:: SSL :: SSLContext # ca _ file=(ca) (6119.0) -
接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを 設定します。
...書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
(ここに証明書の説明)
-----BEGIN CERTIFICATE-----
... (CA certificate in base64 encoding) ...
-----END CERTIFICATE-----
デフォルトは nil です。
@param c......a CA証明書ファイルのパス文字列
@see OpenSSL::SSL::SSLContext#ca_file=... -
Dir
. foreach(path , encoding: Encoding . find("filesystem")) {|file| . . . } -> nil (418.0) -
ディレクトリ path の各エントリを表す文字列を引数として、ブロックを評価します。
...トを返します。
@param path ディレクトリのパスを文字列で指定します。
@param encoding ディレクトリのエンコーディングを文字列か
Encoding オブジェクトで指定します。省略した場合は
ファイルシステム...