Synopses & Reviews
Although Ruby is an easy language to learn, in the heat of action you may find that you can't remember the correct syntax for a conditional or the name of a method. This handy pocket reference offers brief yet clear explanations of Ruby's core components, from operators to reserved words to data structures to method syntax, highlighting those key features that you'll likely use every day when coding Ruby.
Whether you've come to Ruby because of the Rails web development framework --Ruby's killer app -- or simply because it's a relatively clean, powerful and expressive language that's useful for a lot of applications, the Ruby Pocket Reference is organized to help you find what you need quickly. This book not only will get you up to speed on how Ruby works, it provides you with a handy reference you can use anywhere, anytime.
In this book, you find essential information on:
- Reserved words, operators, comments, numbers, variables, ranges, and symbols
- Predefined variables andglobal constants
- Conditional statements, method use, classes, and modules (mixins)
- Lists of methods from the Object, String, Array, and Hash classes and the Kernel module
- sprintf andtime formatting directories
- Interactive Ruby (irb) and the Ruby debugger
- Ruby documentation
You also get information on the RubyGems package utility and Rake, a build tool similar to make.. If you're using Ruby daily and just want the facts-fast-Ruby Pocket Reference
is your book.
About the Author
Michael Fitzgerald is Principal at Overdue Books LLC, a publishing and writing firm. He is the author of Learning Ruby, Ruby Pocket Reference, XML Pocket Reference, Third Edition with Simon St. Laurent, XML Hacks, and Learning XSLT, all published by O'Reilly. He is also the author of Building B2B Applications with XML: A Resource Guide and XSL Essentials (both by John Wiley & Sons). His books have been translated into Spanish, French, German, Japanese, and Chinese. He has also been a regular contributor to XML.com. Michael likes to ski (downhill and cross country), ride and train horses, and spend time with his family.
Table of Contents
Chapter 1: Ruby Pocket Reference; 1.1 Conventions Used in This Book; 1.2 Comments and Questions; 1.3 Acknowledgments; 1.4 Running Ruby; 1.5 Reserved Words; 1.6 Operators; 1.7 Comments; 1.8 Numbers; 1.9 Variables; 1.10 Symbols; 1.11 Predefined Variables; 1.12 Pseudovariables; 1.13 Global Constants; 1.14 Ranges; 1.15 Methods; 1.16 Conditional Statements; 1.17 Classes; 1.18 Files; 1.19 The IO Class; 1.20 Exception Handling; 1.21 Object Class; 1.22 Kernel Module; 1.23 String Class; 1.24 Array Class; 1.25 Hash Class; 1.26 Time Formatting Directives; 1.27 Interactive Ruby (irb); 1.28 Ruby Debugger; 1.29 Ruby Documentation; 1.30 RDoc Options; 1.31 RubyGems; 1.32 Rake; 1.33 Ruby Resources; 1.34 Glossary;