diff options
author | zverok <[email protected]> | 2019-12-25 20:39:42 +0200 |
---|---|---|
committer | Kazuki Tsujimoto <[email protected]> | 2020-02-24 00:28:13 +0900 |
commit | 281b3500580f9ec93ee17679c648eaeb4a47f8b6 (patch) | |
tree | 74aa5c17726926d7e8c3ff5ee2ec1cfafafe9fee /doc/syntax.rdoc | |
parent | 8a7e0aaaef3b19f90d6debe6781e4b3031f56237 (diff) |
Add pattern matching documentation
Add separate doc/syntax/pattern_matching.rdoc, add
link to control_expressions.rdoc.
The documentation is "reverse-engineered" from Ruby 2.7
behavior and early preview presentations, and corrected
by pattern-matching feature author @k-tsj.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2786
Diffstat (limited to 'doc/syntax.rdoc')
-rw-r--r-- | doc/syntax.rdoc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/syntax.rdoc b/doc/syntax.rdoc index cdcb18dae1..5895673f36 100644 --- a/doc/syntax.rdoc +++ b/doc/syntax.rdoc @@ -11,6 +11,9 @@ Assignment[rdoc-ref:syntax/assignment.rdoc] :: {Control Expressions}[rdoc-ref:syntax/control_expressions.rdoc] :: +if+, +unless+, +while+, +until+, +for+, +break+, +next+, +redo+ +{Pattern matching}[rdoc-ref:syntax/pattern_matching.rdoc] :: + Experimental structural pattern matching and variable binding syntax + Methods[rdoc-ref:syntax/methods.rdoc] :: Method and method argument syntax |