Create bookmark
The Ruby Programming Language
Notes
Please login to add notes
- Table of Contents
- + Preface
-
+
Chapter 1. Introduction
- + Chapter 2. The Structure and Execution of Ruby Programs
-
+
Chapter 3. Datatypes and Objects
- + 3.1 Numbers
-
+
3.2 Text
- 3.3 Arrays
- + 3.4 Hashes
- + 3.5 Ranges
- 3.6 Symbols
- 3.7 True, False, and Nil
- + 3.8 Objects
-
+
Chapter 4. Expressions and Operators
- 4.1 Literals and Keyword Literals
- + 4.2 Variable References
- 4.3 Constant References
- 4.4 Method Invocations
-
+
4.5 Assignments
-
+
4.6 Operators
- 4.6.1 Unary + and –
- 4.6.2 Exponentiation: **
- 4.6.3 Arithmetic: +, –, *, /, and %
- 4.6.4 Shift and Append: << and >>
- 4.6.5 Complement, Union, Intersection: ~, &, |, and ^
- 4.6.6 Comparison: <, <=, >, >=, and <=>
- 4.6.7 Equality: ==, !=, =~, !~, and ===
- 4.6.8 Boolean Operators: &&, ||, !, and, or, not
- + 4.6.9 Ranges and Flip-Flops: .. and ...
- 4.6.10 Conditional: ?:
- 4.6.11 Assignment Operators
- 4.6.12 The defined? Operator
- 4.6.13 Statement Modifiers
- 4.6.14 Nonoperators
-
+
Chapter 5. Statements and Control Structures
- + Chapter 6. Methods, Procs, Lambdas, and Closures
-
+
Chapter 7. Classes and Modules
-
+
7.1 Defining a Simple Class
- 7.1.1 Creating the Class
- 7.1.2 Instantiating a Point
- 7.1.3 Initializing a Point
- 7.1.4 Defining a to_s Method
- 7.1.5 Accessors and Attributes
- 7.1.6 Defining Operators
- 7.1.7 Array and Hash Access with [ ]
- 7.1.8 Enumerating Coordinates
- 7.1.9 Point Equality
- 7.1.10 Ordering Points
- 7.1.11 A Mutable Point
- 7.1.12 Quick and Easy Mutable Classes
- 7.1.13 A Class Method
- 7.1.14 Constants
- 7.1.15 Class Variables
- 7.1.16 Class Instance Variables
- 7.2 Method Visibility: Public, Protected, Private
-
+
7.3 Subclassing and Inheritance
- + 7.4 Object Creation and Initialization
- + 7.5 Modules
- + 7.6 Loading and Requiring Modules
- 7.7 Singleton Methods and the Eigenclass
- + 7.8 Method Lookup
- 7.9 Constant Lookup
-
+
7.1 Defining a Simple Class
-
+
Chapter 8. Reflection and Metaprogramming
- + 8.1 Types, Classes, and Modules
- + 8.2 Evaluating Strings and Blocks
- + 8.3 Variables and Constants
- + 8.4 Methods
- 8.5 Hooks
- 8.6 Tracing
- 8.7 ObjectSpace and GC
- + 8.8 Custom Control Structures
- + 8.9 Missing Methods and Missing Constants
- + 8.10 Dynamically Creating Methods
- + 8.11 Alias Chaining
- + 8.12 Domain-Specific Languages
-
+
Chapter 9. The Ruby Platform
- + 9.1 Strings
-
+
9.2 Regular Expressions
- + 9.3 Numbers and Math
- 9.4 Dates and Times
-
+
9.5 Collections
- + 9.5.1 Enumerable Objects
- + 9.5.2 Arrays
-
+
9.5.3 Hashes
- 9.5.3.1 Creating hashes
- 9.5.3.2 Indexing hashes and testing membership
- 9.5.3.3 Storing keys and values in a hash
- 9.5.3.4 Removing hash entries
- 9.5.3.5 Arrays from hashes
- 9.5.3.6 Hash iterators
- 9.5.3.7 Default values
- 9.5.3.8 Hashcodes, key equality, and mutable keys
- 9.5.3.9 Miscellaneous hash methods
- + 9.5.4 Sets
- + 9.6 Files and Directories
-
+
9.7 Input/Output
- + 9.8 Networking
- + 9.9 Threads and Concurrency
-
+
Chapter 10. The Ruby Environment
- + 10.1 Invoking the Ruby Interpreter
-
+
10.2 The Top-Level Environment
- + 10.3 Practical Extraction and Reporting Shortcuts
- + 10.4 Calling the OS
- + 10.5 Security
- Index
The Ruby Programming Language is the authoritative guide to Ruby and provides comprehensive coverage of versions 1.8 and 1.9 of the language. It was written (and illustrated!) by an all-star team: David Flanagan, bestselling author of programming language "bibles" (including JavaScript: The Definitive Guide and Java in a Nutshell) and committer to the Ruby Subversion repository.Yukihiro "Matz" Matsumoto, creator, designer and lead developer of Ruby and author of Ruby in a Nutshell, which has been expanded and revised to become this book.why the lucky stiff, artist and Ruby programmer extraordinaire. This book begins with a quick-start tutorial to the language, and then explains the language in detail from the bottom up: from lexical and syntactic structure to datatypes to expressions and statements and on through methods, blocks, lambdas, closures, classes and modules. The book also includes a long and thorough introduction to the rich API of the Ruby platform, demonstrating -- with heavily-commented example code -- Ruby's facilities for text processing, numeric manipulation, collections, input/output, networking, and concurrency. An entire chapter is devoted to Ruby's metaprogramming capabilities.The Ruby Programming Language documents the Ruby language definitively but without the formality of a language specification. It is written for experienced programmers who are new to Ruby, and for current Ruby programmers who want to challenge their understanding and increase their mastery of the language.
Test the closed alpha on paperc.com
Book Details
Authors
David Flanagan David Flanagan and Yukihiro Matsumoto Yukihiro Matsumoto
Categories
Computers > Software development & engineering > General
Publishers
Publication year : 2008
License: All rights reserved ©
Times read: 1,490

