... Ruby objects respond to the each message for does it for them The following two snippets are equivalent: for x in [1,2,3,4 ,5] puts x * 10 end and [1,2,3,4 ,5] .each {|x| puts x * 10 } B What you’re ... to use an absolute path for a file This may happen if you create a class or module with a name that’s similar to the name of a Ruby built-in class or module For example, Ruby comes with a String ... at Ruby facilities for reacting to, and handling, error conditions Error handling and exceptions 2 25 8.4 Error handling and exceptions Way back in chapter 1, we looked at how to test code for...