44件ヒット
[1-44件を表示]
(0.020秒)
種類
- インスタンスメソッド (32)
- 文書 (12)
ライブラリ
- ビルトイン (32)
クラス
- String (32)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (12) - chars (12)
-
each
_ grapheme _ cluster (8)
検索結果
先頭4件
-
String
# each _ char {|cstr| block } -> self (18208.0) -
文字列の各文字に対して繰り返します。
...文字列の各文字に対して繰り返します。
たとえば、
//emlist[][ruby]{
"hello世界".each_char {|c| print c, ' ' }
//}
は次のように出力されます。
h e l l o 世 界
@see String#chars... -
String
# chars {|cstr| block } -> self (128.0) -
文字列の各文字を文字列の配列で返します。(self.each_char.to_a と同じです)
...列の各文字を文字列の配列で返します。(self.each_char.to_a と同じです)
//emlist[例][ruby]{
"hello世界".chars # => ["h", "e", "l", "l", "o", "世", "界"]
//}
ブロックが指定された場合は String#each_char と同じように動作します。
Ruby 2.6 までは de......precated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_char... -
String
# each _ grapheme _ cluster {|grapheme _ cluster| block } -> self (112.0) -
文字列の書記素クラスタに対して繰り返します。
...スタに対して繰り返します。
String#each_char と違って、
Unicode Standard Annex #29 (https://unicode.org/reports/tr29/)
で定義された書記素クラスタに対して繰り返します。
//emlist[例][ruby]{
"a\u0300".each_char.to_a.size # => 2
"a\u0300".each_grapheme_cluster... -
NEWS for Ruby 2
. 0 . 0 (30.0) -
NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...的): Mutex#owned? mutex が現在のスレッドに所持されているかどうかを返します
* 非互換:
* Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize, Mutex#sleep
はトラップハンドラの中では使えなくなりました。そのようなとき......arch 二分探索
* RubyVM (MRI specific)
* 追加: RubyVM::InstructionSequence.of to get the instruction sequence
from a method or a block.
* 追加: RubyVM::InstructionSequence#path,
RubyVM::InstructionSequence#absolute_path,
RubyVM::InstructionSequence#label,
Ru......IO#bytes,
Zlib::GzipReader#lines, Zlib::GzipReader#bytes
* これらのメソッドは非推奨になりました。each_line, each_byte, each_char, each_codepoint を使ってください。
* Proc#==, m:Proc#eql?
* 削除されました。2つの Proc オブジェクトは同じオ...