Ruby in a Nutshell

Yukihiro Matsumoto

  • 出版商: O'Reilly
  • 售價: $1,100
  • 貴賓價: 9.5$1,045
  • 語言: 英文
  • 頁數: 230
  • 裝訂: Paperback
  • ISBN: 0596002149
  • ISBN-13: 9780596002145
  • 相關分類: Ruby
  • 已過版

買這商品的人也買了...

相關主題

商品描述

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.

Table of Contents

Preface

Chapter 1. Introduction
     Ruby's Elegance
     Ruby in Action

Chapter 2. Language Basics
     Command-Line Options
     Environment Variables
     Lexical Conventions
     Literals
     Variables
     Operators
     Methods
     Control Structures
     Object-Oriented Programming
     Security

Chapter 3. Built-in Library Reference
     Predefined Variables
     Predefined Global Constants
     Built-in Functions
     Built-in Library

Chapter 4. Standard Library Reference
     Standard Library

Chapter 5. Ruby Tools
     Standard Tools
     Additional Tools
     Ruby Application Archive

Chapter 6. Ruby Updates
     Summary of Changes
     The Future of Ruby
     Participate in Ruby

Index