Synopses & Reviews
Ruby is an absolutely pure object-oriented scripting language written in C and designed with Perl and Python capabilities in mind. While its roots are in Japan, Ruby is slowly but surely gaining ground in the US. The goal of Yukihiro Matsumoto, creator of Ruby and author of this book, is to incorporate the strengths of languages like Perl, Python, Lisp and Smalltalk. Ruby is a genuine attempt to combine the best of everything in the scripting world. Since 1993, Ruby mailing lists have been established, Web pages have formed, and a community has grown around it. The language itself is very good at text processing and is notable for its broad object orientation. Ruby is portable and runs under GNU/Linux (and other Unices) as well as DOS, MS Windows and Mac.
With Ruby in a Nutshell, Matsumoto offers a practical reference to the features of this new language including the command-line options, syntax, built-in variables, functions, and many commonly used classes and modules. This guide covers the current stable version of Ruby (1.6), yet is applicable to the development version 1.7 and the next planned stable version 1.8. You will find a thorough description of Ruby's language syntax, and a description of the core functionality built into the standard Ruby interpreter, which has more than 800 built-in methods in 42 classes and modules.
Ruby finds its power through its built-in libraries, and this handy volume take you through the many useful libraries that come with the standard Ruby distribution from network access via HTTP and CGI programming, to data persistence using the DBM library. This book concludes with coverage of the unique tools that come with Ruby, including the debugger, profiler, and irb (or interactive ruby).
Find out how Ruby combines the strengths of other languages, and why it has captured the interest of so many open source programmers. As part of the successful "in a nutshell" series of books from O'Reilly & Associates, Ruby in a Nutshell is for readers who want a single desktop reference for all their needs.
Ruby is an absolutely pure object-oriented scripting languagewritten in C and designed with Perl and Python capabilities in mind.While its roots are in Japan, Ruby is slowly but surely gaining ground in the U.S.The goal of Yukihiro Matsumoto, creator of Ruby and author of this book, is to incorporate the strengths of other languages like Perl, Python, Lisp, and Smalltalk."Ruby in a Nutshell is a practical reference guide to the features of Ruby, including the command line options, syntax, built- in variables, functions, and many commonly used classes and modules. The book covers the current stable version of Ruby (1.6), yet is applicable to the development version 1.7 and the next planned stable version 1.8.The Ruby language syntax is thoroughly discussed, along with the core functionality built into the standard Ruby interpreter, the built-in library, and the tools that come with Ruby, including the debugger, profiler, and irb (or interactive ruby.)
Portable and convenient, "Ruby Essentials" is a concise reference to the features of Ruby's command-line options, syntax, built-in variables, functions and other commonly used classes. Additional code, discussion and examples are included.
About the Author
Yukihiro Matsumoto ("Matz"), the creator of Ruby, is a professional programmer who worked for the Japanese open source company, netlab.jp. Matz is also known as one of the open source evangelists in Japan. He's released several open source products, including cmail, the emacs-based mail user agent, written entirely in emacs lisp. Ruby is his first piece of software that has become known outside of Japan.
Table of Contents
Foreword; Preface; How This Book Is Organized; Conventions Used in This Book; Comments and Questions; Acknowledgments; Chapter 1: Introduction; 1.1 Ruby's Elegance; 1.2 Ruby in Action; Chapter 2: Language Basics; 2.1 Command-Line Options; 2.2 Environment Variables; 2.3 Lexical Conventions; 2.4 Literals; 2.5 Variables; 2.6 Operators; 2.7 Methods; 2.8 Control Structures; 2.9 Object-Oriented Programming; 2.10 Security; Chapter 3: Built-in Library Reference; 3.1 Predefined Variables; 3.2 Predefined Global Constants; 3.3 Built-in Functions; 3.4 Built-in Library; Chapter 4: Standard Library Reference; 4.1 Standard Library; Chapter 5: Ruby Tools; 5.1 Standard Tools; 5.2 Additional Tools; 5.3 Ruby Application Archive; Chapter 6: Ruby Updates; 6.1 Summary of Changes; 6.2 Changes from 1.6.5 to 1.7.1; 6.3 The Future of Ruby; 6.4 Participate in Ruby; Colophon;