chapter one
1 Bootstrapping your Ruby literacy
This chapter covers
- A Ruby syntax survival kit
- Writing, saving, running, and error-checking programs
- A tour of the Ruby installation
- The mechanics of Ruby extensions
- Ruby’s command-line tools such as
irbandrake
This book will give you a foundation in Ruby. It’s organized to first provide the fundamental building blocks of the language. Then it adds a study of higher-order classes and modules, and it finishes by teaching you how to apply what you’ve learned through advanced Ruby techniques and program design. The Well-Grounded Rubyist, Fourth Edition, is written for the reader who’s done some programming and perhaps even some Ruby and wants to learn more about the Ruby language. In reading this book, you’re going on a journey with us to learn not only specific techniques but also the design principles and richness of the language. We love Ruby, and we hope to impart not just the specifics of the language we love but also why we love it.