商品描述
Ruby Quick Syntax Reference is a condensed code and syntax reference to the Ruby scripting language. It presents the essential Ruby syntax in a well-organized format that can be used as a handy reference.
You won't find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any Ruby programmer.
In Ruby Quick Syntax Reference, you will find:
- A concise reference to the Ruby language syntax.
- Short, simple, and focused code examples.
- A well laid out table of contents and a comprehensive index, allowing easy review.
What you’ll learn
- What variables, operators, strings, arrays, blocks, and procs are
- How to manage statements and control structures
- How to create Ruby classes and modules
- How to use metaprogramming and change classes
- How to use loops and iteration
- How to manage errors and exceptions
Who this book is for
This book is a quick, handy pocket syntax reference for experienced Ruby programmers, and a concise, easily-digested introduction for other programmers new to Ruby.
Table of Contents
- Chapter One: Introducing Ruby
- Chapter Two: Operators
- Chapter Three: Strings
- Chapter Four: Arrays
- Chapter Five: Hashes
- Chapter Six: Numbers
- Chapter Seven: Booleans
- Chapter Eight: Objects
- Chapter Nine: Loops and Iterators
- Chapter Ten: Functions and Methods
- Chapter Eleven: Classes and Modules
- Chapter Twelve: Blocks, Procs, and Lambdas
- Chapter Thirteen: Errors and Exceptions
- Chapter Fourteen: Input/Output
- Chapter Fifteen: Files and Directories
- Chapter Sixteen: Metaprogramming
商品描述(中文翻譯)
《Ruby 快速語法參考》是一本針對 Ruby 腳本語言的精簡代碼和語法參考書。它以良好組織的格式呈現了 Ruby 的基本語法,方便用作隨手參考。
在這本書中,你不會找到任何技術術語、冗長的範例、拖沓的歷史課程或機智的故事。你會發現的是一本簡潔、直截了當且易於理解的語言參考書。這本書充滿了有用的信息,是任何 Ruby 程式設計師的必備工具。
在《Ruby 快速語法參考》中,你將會找到:
- Ruby 語言語法的簡明參考。
- 短小、簡單且專注的代碼範例。
- 佈局良好的目錄和全面的索引,方便快速查閱。
你將學到的內容:
- 什麼是變數、運算符、字串、陣列、區塊和 proc
- 如何管理語句和控制結構
- 如何創建 Ruby 類和模組
- 如何使用元編程和更改類別
- 如何使用迴圈和迭代
- 如何管理錯誤和例外
這本書適合誰:
這本書是經驗豐富的 Ruby 程式設計師的快速、方便的口袋語法參考,同時也是其他新接觸 Ruby 的程式設計師的簡明易懂的入門書。
目錄:
1. 第一章:介紹 Ruby
2. 第二章:運算符
3. 第三章:字串
4. 第四章:陣列
5. 第五章:雜湊
6. 第六章:數字
7. 第七章:布林值
8. 第八章:物件
9. 第九章:迴圈和迭代器
10. 第十章:函數和方法
11. 第十一章:類和模組
12. 第十二章:區塊、Proc 和 Lambda
13. 第十三章:錯誤和例外
14. 第十四章:輸入/輸出
15. 第十五章:檔案和目錄
16. 第十六章:元編程