Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
More than anything else, code that looks like Ruby looks readable. This means that although Ruby programmers generally follow the coding conventions that we have covered in this chapter, sometimes circumstances—and readability—call for the unconventional. Take the rule about folding up a one line code block, so that instead of this:
doc.words.each do |word| puts word end