Skip to content

Commit

Permalink
後ほど説明します -> 後述
Browse files Browse the repository at this point in the history
Co-authored-by: shuichi <[email protected]>

cf. #2773 (comment)
cf. #2773 (comment)
  • Loading branch information
sanfrecce-osaka committed Feb 4, 2023
1 parent f924b97 commit 7bffd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions refm/doc/spec/pattern_matching.rd
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ users.any? {|user| user in {name: /B/, age: 20..} } #=> true
Array/Find/Hash パターンの中に 『<subpattern>』 と書かれている場所では任意のパターンをネストさせることができます。

#@# Array patterns and find patterns match arrays, or objects that respond to +deconstruct+ (see below about the latter).
Array パターン と Find パターン は配列か deconstruct メソッドを持つオブジェクトにマッチします。(deconstruct については後ほど説明します)
Array パターン と Find パターン は配列か deconstruct メソッド(後述)を持つオブジェクトにマッチします。

#@# Hash patterns match hashes, or objects that respond to +deconstruct_keys+ (see below about the latter). Note that only symbol keys are supported for hash patterns.
Hash パターン はハッシュか deconstruct_keys メソッドを持つオブジェクトにマッチします。(deconstruct_keys については後ほど説明します) Hash パターン で利用できるキーはシンボルのみです。
Hash パターン はハッシュか deconstruct_keys メソッド(後述)を持つオブジェクトにマッチします。Hash パターン で利用できるキーはシンボルのみです。

#@# An important difference between array and hash pattern behavior is that arrays match only a _whole_ array:
Array パターン と Hash パターン の挙動の重要な違いは Array パターンは配列の 「全ての」 要素がマッチする必要があるということです。
Expand Down

0 comments on commit 7bffd47

Please sign in to comment.