Ruby in a Nutshell
暫譯: 《Ruby 精要》

Yukihiro Matsumoto

  • 出版商: O'Reilly
  • 售價: $1,120
  • 貴賓價: 9.5$1,064
  • 語言: 英文
  • 頁數: 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

商品描述(中文翻譯)

Ruby 是一種完全純粹的物件導向腳本語言,使用 C 語言編寫,並設計時考慮了 Perl 和 Python 的特性。雖然它的根源在日本,但 Ruby 正在美國穩步增長。Ruby 的創造者及本書作者松本行弘的目標是結合 Perl、Python、Lisp 和 Smalltalk 等語言的優勢。Ruby 是一個真正嘗試將腳本世界中所有最佳特性結合的語言。自 1993 年以來,Ruby 的郵件列表已經建立,網頁也隨之形成,並圍繞著它發展出一個社群。這種語言在文本處理方面非常出色,並以其廣泛的物件導向特性而著稱。Ruby 是可攜式的,能在 GNU/Linux(及其他 Unix 系統)、DOS、MS Windows 和 Mac 上運行。

在《Ruby in a Nutshell》中,松本提供了這種新語言的實用參考,包括命令行選項、語法、內建變數、函數以及許多常用的類別和模組。本指南涵蓋了 Ruby 的當前穩定版本(1.6),但同樣適用於開發版本 1.7 和下一個計劃中的穩定版本 1.8。您將找到 Ruby 語言語法的詳細描述,以及標準 Ruby 解譯器內建功能的描述,該解譯器擁有超過 800 個內建方法,分佈在 42 個類別和模組中。

Ruby 的強大來自於其內建的函式庫,而這本實用的書籍將帶您了解隨標準 Ruby 發行版附帶的許多有用函式庫——從通過 HTTP 的網路存取和 CGI 程式設計,到使用 DBM 函式庫的數據持久性。本書最後涵蓋了 Ruby 附帶的獨特工具,包括除錯器、性能分析器和 irb(或互動式 Ruby)。

了解 Ruby 如何結合其他語言的優勢,以及為什麼它吸引了如此多的開源程式設計師的興趣。作為 O'Reilly & Associates 成功的「in a nutshell」系列書籍之一,《Ruby in a Nutshell》適合希望擁有單一桌面參考以滿足所有需求的讀者。

目錄

前言

第一章:介紹
     Ruby 的優雅
     Ruby 的實踐

第二章:語言基礎
     命令行選項
     環境變數
     詞法慣例
     字面量
     變數
     運算子
     方法
     控制結構
     物件導向程式設計
     安全性

第三章:內建函式庫參考
     預定義變數
     預定義全域常數
     內建函數
     內建函式庫

第四章:標準函式庫參考
     標準函式庫

第五章:Ruby 工具
     標準工具
     附加工具
     Ruby 應用程式檔案

第六章:Ruby 更新
     變更摘要
     Ruby 的未來
     參與 Ruby

索引

最後瀏覽商品 (20)