O'Reilly logo

Ruby by Example by Kevin C. Baird

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter Recap

What was new in this chapter?

  • Tidying HTML/XML markup

  • Piping output to standard error with 2>

  • The Web Accessibility Initiative

  • The <=> method and the Comparable module

  • Processing XML with REXML and XML::DOM::Builder

  • Manipulating XML documents with regular expressions

  • Making Hashes out of Arrays with inject

  • Hashes serving as histograms

  • Mapping Procs onto Arrays

  • The Document Object Model

  • The begin and rescue keywords

That’s it for our XML-processing scripts. I hope these example scripts are not only useful in and of themselves but that they also might give you ideas about how you could modify or extend them to suit new tasks other than those presented here. For now, we’ll proceed to our next chapter, Chapter 9. As the name suggests, its scripts ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required