作者简介 杰伊·麦加文(Jay McGavren), was working on automation for a hotel services company when a colleague introduced him to Programming Perl (a.k.a. the Camel Book). It made him an instant Perl convert, as he liked actually writing code instead of waiting for a 10-person development team to configure a build system. It also gave him the crazy idea to write a technical book someday. In 2007, with Perl sputtering, Jay was looking for a new interpreted language. With its strong object orientation, excellent library support, and incredible flexibility, Ruby won him over. He's since used Ruby for two game libraries, for a generative art project, and as a Ruby on Rails freelancer. He's been working in the online developer education space since 2011.
目录 Intro 1 More with less: Code the Way You Want 2 Methods and classes: Getting Organized 3 Inheritance: Relying on Your Parents 4 Initializing instances: Off to a Great Start 5 Arrays and blocks: Better Than Loops 6 Block return values: How Should I Handle This? 7 Hashes: Labeling Data 8 References: Crossed Signals 9 Mixins: Mix It Up 10 Comparable and enumerable: Ready-Made Mixes 11 Documentation: Read the Manual 12 Exceptions: Handling the Unexpected 13 Unit testing: Code Quality Assurance 14 Web apps: Serving HTML 15 Saving and loading data: Keep ItAround i Leftovers: The Top Ten Topics (We Didnt Cover)