Skip to content

Commit

Permalink
Update refm/doc/spec/pattern_matching.rd
Browse files Browse the repository at this point in the history
Co-authored-by: shuichi <[email protected]>
  • Loading branch information
sanfrecce-osaka and shu-i-chi authored Jan 6, 2023
1 parent 1f6f8a0 commit 96edd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refm/doc/spec/pattern_matching.rd
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ end
#@end

#@# == Matching non-primitive objects: +deconstruct+ and +deconstruct_keys+
===[a:matching_non_primitive_objects] プリミティブなオブジェクト以外とのマッチング: deconstruct と deconstruct_keys
===[a:matching_non_primitive_objects] プリミティブなオブジェクト以外とのマッチ: deconstruct と deconstruct_keys

#@# As already mentioned above, array, find, and hash patterns besides literal arrays and hashes will try to match any object implementing +deconstruct+ (for array/find patterns) or +deconstruct_keys+ (for hash patterns).
既に先述されている通り、配列リテラルやハッシュリテラルの他に Array, Find, Hash パターンは deconstruct (これは Array/Find パターンで利用されます) か deconstruct_keys (これは Hash パターンで利用されます) が実装されたオブジェクトにマッチします。
Expand Down

0 comments on commit 96edd79

Please sign in to comment.