Synopses & Reviews
The Well-Grounded Rubyist, Second Edition addresses both newcomers to Ruby as well as Ruby programmers who want to deepen their understanding of the language. This beautifully written and totally revised second edition includes coverage of features that are new in Ruby 2.1, as well as expanded and updated coverage of aspects of the language that have changed.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
This is a good time for Ruby! It's powerful like Java or C++, and has dynamic features that let your code react gracefully to changes at runtime. And it's elegant, so creating applications, development tools, and administrative scripts is easier and more straightforward. With the long-awaited Ruby 2, an active development community, and countless libraries and productivity tools, Ruby has come into its own.
About the Book
The Well-Grounded Rubyist, Second Edition is a beautifully written tutorial that begins with your first Ruby program and goes on to explore sophisticated topics like callable objects, reflection, and threading. The book concentrates on the language, preparing you to use Ruby in any way you choose. This second edition includes coverage of new Ruby features such as keyword arguments, lazy enumerators, and Module#prepend, along with updated information on new and changed core classes and methods.
- Clear explanations of Ruby concepts
- Numerous simple examples
- Updated for Ruby 2.1
- Prepares you to use Ruby anywhere for any purpose
About the Author
David A. Black is an internationally known Ruby developer, author, trainer, speaker, event organizer, and founder of Ruby Central, as well as a Lead Consultant at Cyrus Innovation.
Table of Contents
PART 1 RUBY FOUNDATIONS
- Bootstrapping your Ruby literacy
- Objects, methods, and local variables
- Organizing objects with classes
- Modules and program organization
- The default object (self), scope, and visibility
- Control-flow techniques
PART 2 BUILT-IN CLASSES AND MODULES
- Built-in essentials
- Strings, symbols, and other scalar objects
- Collection and container objects
- Collections central: Enumerable and Enumerator
- Regular expressions and regexp-based string operations
- File and I/O operations
PART 3 RUBY DYNAMICS
- Object individuation
- Callable and runnable objects
- Callbacks, hooks, and runtime introspection
Developers discovering Ruby quickly learn that this elegant object-oriented language is a powerful alternative to traditional static languages like Java or C++. It runs in most operating environments and can handle virtually any programming task you throw at it. Ruby code is clean and clear. Best of all, Ruby is dynamic, which means that it's designed to react at runtime to changes in an application's environment or requirements. And with the new language features in the long-awaited Ruby 2, Ruby has truly come into its own.
The Well-Grounded Rubyist, Second Edition addresses both newcomers to Ruby and those Ruby programmers who want to deepen their understanding of the language. It begins with the basic steps to getting a Ruby program up and running and goes on to explore sophisticated topics like callable objects, reflection, and threading. Whether the topic is simple or tough, the book's easy-to-follow examples and expert author David A. Black's lucid explanations give you immediate confidence as you build your Ruby programming skills.
This totally revised second edition includes coverage of features that are new in Ruby 2, as well as expanded and updated coverage of aspects of the language that have changed. New topics include keyword arguments, lazy enumerators, and Module#prepend. Updated areas include the new regular expression engine, program file encoding, and changes to the behavior of core classes and methods.
About the Author
David A. Black is an internationally-known Ruby developer, author, trainer, speaker, and event organizer. A Lead Developer at Cyrus Innovation, he is a Ruby standard library contributor and one of the founders of Ruby Central, Inc., the parent organization of the official international Ruby and Ruby on Rails conferences.