December 2014
Intermediate to advanced
164 pages
2h 14m
English
CHAPTER 2
![]()
Operators
Expressions
Unlike other programming languages, in Ruby there isn’t a distinction between statements and expressions: everything is evaluated as an expression that produces a return value. The simplest expressions are:
x = 1 # assignment expressionx # variable reference expressionMY_CONST # constant reference
Operators
Read now
Unlock full access