Book description
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
Publisher resources
Table of contents
- Ruby Pocket Reference
-
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
- About the Author
- Copyright
Product information
- Title: Ruby Pocket Reference
- Author(s):
- Release date: July 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596514815
You might also like
book
A Functional Approach to Java
Java developers usually tackle the complexity of software development through object-oriented programming (OOP). But not every …
book
Node.js: Novice to Ninja
Node.js: Novice to Ninja is your hands-on guide to learning everything needed to build a professional …
book
Joe Celko's SQL for Smarties, 5th Edition
SQL for Smarties was hailed as the first book devoted explicitly to the advanced techniques needed …
book
Learn to Code by Solving Problems
Computers are capable of solving almost any problem when given the right instructions. That’s where programming …