46件ヒット
[1-46件を表示]
(0.024秒)
種類
- インスタンスメソッド (24)
- 文書 (22)
ライブラリ
- ビルトイン (24)
クラス
- String (24)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10)
検索結果
先頭4件
-
String
# each _ codepoint -> Enumerator (18120.0) -
文字列の各コードポイントに対して繰り返します。
...の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see Stri... -
String
# each _ codepoint {|codepoint| block } -> self (18120.0) -
文字列の各コードポイントに対して繰り返します。
...の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see Stri... -
NEWS for Ruby 2
. 0 . 0 (24.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...い変数は警告しなくなりました
=== 組み込みクラスの更新
* ARGF.class
* 追加: ARGF.class#codepoints, ARGF.class#each_codepoint
IO にある同名のメソッドに対応します
* Array
* 追加: Array#bsearch 二分探索します
* 非互換:......Zlib::GzipReader#lines, Zlib::GzipReader#bytes
* これらのメソッドは非推奨になりました。each_line, each_byte, each_char, each_codepoint を使ってください。
* Proc#==, m:Proc#eql?
* 削除されました。2つの Proc オブジェクトは同じオブジェク......ーを危険なシリアライゼーションに関する脆弱性から保護するためです。
* iconv
* 削除しました。String#encode を使ってください。
* io/console
* 追加: IO#cooked which sets the terminal to cooked mode within the given block.
* 追加: IO#... -
NEWS for Ruby 2
. 3 . 0 (12.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...IO
* クローズ済みのIOオブジェクトに IO#close を呼んでも例外が発生しなくなりました。
10718
* IO#each_codepoint は、変換時、EOFの前に不完全な文字があると例外が発生するようになりました。
11444
* Module
* Mod.......4.5になりました。
ライセンスが BSD 2-clause "Simplified" License に変更されました。
* base64
* Base64.#urlsafe_encode64 に パディング文字("=")を抑制するために "padding" オプションが追加されました。
10740
* Base64.#urlsafe_de...