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
Practical System Programming with C: Pragmatic Example Applications in Linux and Unix-Based Operating Systems
This book teaches system programming with the latest versions of C through a set of practical …
book
You, Only Better
If you want to be happy, fulfilled and energised its probably best not to obsess over …
book
Mastering Ruby Closures
The road to Ruby mastery is paved with blocks, procs, and lambdas. To be a truly …
book
The Time Cleanse: A Proven System to Eliminate Wasted Time, Realize Your Full Potential, and Reinvest in What Matters Most
Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, …