What was new in this chapter?
Constants versus magic numbers
Expressions with the
External file access, both reading and writing, using
Splitting Strings into Arrays
Generating (pseudo-)random numbers
Running Ruby programs at the command line
Defining and instantiating new Classes
Ruby method naming conventions: predicate?, destructive!
Introduction to RDoc
Expression interpolation within Strings:
Ternary operator: (
expression ? if_true : if_false)
each method with blocks
That’s a great deal of non-trivial information. If you’re relatively new to programming, have ...