2012-12-16 21:26:15 -05:00
|
|
|
= Ruby Syntax
|
|
|
|
|
|
|
|
The Ruby syntax is large and is split up into the following sections:
|
|
|
|
|
2013-01-15 13:15:12 -05:00
|
|
|
Literals[rdoc-ref:syntax/literals.rdoc] ::
|
2012-12-16 21:26:15 -05:00
|
|
|
Numbers, Strings, Arrays, Hashes, etc.
|
|
|
|
|
2013-01-18 19:16:08 -05:00
|
|
|
Assignment[rdoc-ref:syntax/assignment.rdoc] ::
|
|
|
|
Assignment and variables
|
|
|
|
|
2013-01-15 13:15:12 -05:00
|
|
|
{Control Expressions}[rdoc-ref:syntax/control_expressions.rdoc] ::
|
|
|
|
+if+, +unless+, +while+, +until+, +for+, +break+, +next+, +redo+
|
|
|
|
|
|
|
|
Methods[rdoc-ref:syntax/methods.rdoc] ::
|
2012-12-16 21:26:15 -05:00
|
|
|
Method and method argument syntax
|
|
|
|
|
2013-01-15 13:15:12 -05: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-16 21:26:15 -05:00
|
|
|
Exception handling syntax
|
|
|
|
|
2013-01-15 13:15:12 -05:00
|
|
|
Precedence[rdoc-ref:syntax/precedence.rdoc] ::
|
|
|
|
Precedence of ruby operators
|
|
|
|
|
2013-01-23 19:40:49 -05:00
|
|
|
Refinements[rdoc-ref:syntax/refinements.rdoc] ::
|
|
|
|
Use and behavior of the experimental refinements feature
|
|
|
|
|
2013-01-16 18:36:46 -05:00
|
|
|
Miscellaneous[rdoc-ref:syntax/miscellaneous.rdoc] ::
|
|
|
|
+alias+, +undef+, +BEGIN+, +END+
|
|
|
|
|
2019-10-24 12:35:36 -04:00
|
|
|
Comments[rdoc-ref:syntax/comments.rdoc] ::
|
|
|
|
Line and block code comments
|