- Wydawnictwo: O'Reilly Media
- Data wydania: 18 lipca 2007
- Liczba stron: 180
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.
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.
View Michael Fitzgerald's full profile page.
Zawartość (spis treści):
Chapter 1 Ruby Pocket Reference
- Conventions Used in This Book
- Comments and Questions
- Running Ruby
- Reserved Words
- Predefined Variables
- Global Constants
- Conditional Statements
- The IO Class
- Exception Handling
- Object Class
- Kernel Module
- String Class
- Array Class
- Hash Class
- Time Formatting Directives
- Interactive Ruby (irb)
- Ruby Debugger
- Ruby Documentation
- RDoc Options
- Ruby Resources