2012-12-17 06:26:15 +04:00
|
|
|
= Ruby Syntax
|
|
|
|
|
|
|
|
The Ruby syntax is large and is split up into the following sections:
|
|
|
|
|
2013-01-15 22:15:12 +04:00
|
|
|
Literals[rdoc-ref:syntax/literals.rdoc] ::
|
2012-12-17 06:26:15 +04:00
|
|
|
Numbers, Strings, Arrays, Hashes, etc.
|
|
|
|
|
2013-01-19 04:16:08 +04:00
|
|
|
Assignment[rdoc-ref:syntax/assignment.rdoc] ::
|
|
|
|
Assignment and variables
|
|
|
|
|
2013-01-15 22:15:12 +04:00
|
|
|
{Control Expressions}[rdoc-ref:syntax/control_expressions.rdoc] ::
|
|
|
|
+if+, +unless+, +while+, +until+, +for+, +break+, +next+, +redo+
|
|
|
|
|
2019-12-25 21:39:42 +03:00
|
|
|
{Pattern matching}[rdoc-ref:syntax/pattern_matching.rdoc] ::
|
|
|
|
Experimental structural pattern matching and variable binding syntax
|
|
|
|
|
2013-01-15 22:15:12 +04:00
|
|
|
Methods[rdoc-ref:syntax/methods.rdoc] ::
|
2012-12-17 06:26:15 +04:00
|
|
|
Method and method argument syntax
|
|
|
|
|
2013-01-15 22:15:12 +04:00
|
|
|
{Calling Methods}[rdoc-ref:syntax/calling_methods.rdoc] ::
|
|
|
|
How to call a method (or send a message to a method)
|
|
|
|
|
|
|
|
{Modules and Classes}[rdoc-ref:syntax/modules_and_classes.rdoc] ::
|
|
|
|
Creating modules and classes including inheritance
|
|
|
|
|
|
|
|
Exceptions[rdoc-ref:syntax/exceptions.rdoc] ::
|
2012-12-17 06:26:15 +04:00
|
|
|
Exception handling syntax
|
|
|
|
|
2013-01-15 22:15:12 +04:00
|
|
|
Precedence[rdoc-ref:syntax/precedence.rdoc] ::
|
|
|
|
Precedence of ruby operators
|
|
|
|
|
2013-01-24 04:40:49 +04:00
|
|
|
Refinements[rdoc-ref:syntax/refinements.rdoc] ::
|
2019-12-30 03:59:07 +03:00
|
|
|
Use and behavior of the refinements feature
|
2013-01-24 04:40:49 +04:00
|
|
|
|
2013-01-17 03:36:46 +04:00
|
|
|
Miscellaneous[rdoc-ref:syntax/miscellaneous.rdoc] ::
|
|
|
|
+alias+, +undef+, +BEGIN+, +END+
|
|
|
|
|
2019-10-24 19:35:36 +03:00
|
|
|
Comments[rdoc-ref:syntax/comments.rdoc] ::
|
|
|
|
Line and block code comments
|