Limit search to available items
Book Cover
E-book
Author Flanagan, David.

Title The Ruby programming language / David Flanagan and Yukihiro Matsumoto
Edition 1st ed
Published Sebastopol, Calif. : O'Reilly, 2008

Copies

Description 1 online resource (xi, 429 pages) : illustrations
Contents Table of Contents; Preface; Acknowledgments; David Flanagan; Yukihiro Matsumoto; Conventions Used in This Book; Using Code Examples; How to Contact Us; Safari® Enabled; Chapter 1. Introduction; 1.1 A Tour of Ruby; 1.1.1 Ruby Is Object-Oriented; 1.1.2 Blocks and Iterators; 1.1.3 Expressions and Operators in Ruby; 1.1.4 Methods; 1.1.5 Assignment; 1.1.6 Punctuation Suffixes and Prefixes; 1.1.7 Regexp and Range; 1.1.8 Classes and Modules; 1.1.9 Ruby Surprises; 1.2 Try Ruby; 1.2.1 The Ruby Interpreter; 1.2.2 Displaying Output; 1.2.3 Interactive Ruby with irb
1.2.4 Viewing Ruby Documentation with ri1.2.5 Ruby Package Management with gem; 1.2.6 More Ruby Tutorials; 1.2.7 Ruby Resources; 1.3 About This Book; 1.3.1 How to Read This Book; 1.4 A Sudoku Solver in Ruby; Chapter 2. The Structure and Execution of Ruby Programs; 2.1 Lexical Structure; 2.1.1 Comments; 2.1.1.1 Embedded documents; 2.1.1.2 Documentation comments; 2.1.2 Literals; 2.1.3 Punctuation; 2.1.4 Identifiers; 2.1.4.1 Case sensitivity; 2.1.4.2 Unicode characters in identifiers; 2.1.4.3 Punctuation in identifiers; 2.1.5 Keywords; 2.1.6 Whitespace
2.1.6.1 Newlines as statement terminators2.1.6.2 Spaces and method invocations; 2.2 Syntactic Structure; 2.2.1 Block Structure in Ruby; 2.3 File Structure; 2.4 Program Encoding; 2.4.1 Specifying Program Encoding; 2.4.2 Source, External, and Internal Encodings; 2.5 Program Execution; Chapter 3. Datatypes and Objects; 3.1 Numbers; 3.1.1 Integer Literals; 3.1.2 Floating-Point Literals; 3.1.3 Arithmetic in Ruby; 3.1.4 Binary Floating-Point and Rounding Errors; 3.2 Text; 3.2.1 String Literals; 3.2.1.1 Single-quoted string literals; 3.2.1.2 Double-quoted string literals
3.2.1.3 Unicode escapes3.2.1.4 Arbitrary delimiters for string literals; 3.2.1.5 Here documents; 3.2.1.6 Backtick command execution; 3.2.1.7 String literals and mutability; 3.2.1.8 The String.new method; 3.2.2 Character Literals; 3.2.3 String Operators; 3.2.4 Accessing Characters and Substrings; 3.2.5 Iterating Strings; 3.2.6 String Encodings and Multibyte Characters; 3.2.6.1 Multibyte characters in Ruby 1.9; 3.2.6.2 The Encoding class; 3.2.6.3 Multibyte characters in Ruby 1.8; 3.3 Arrays; 3.4 Hashes; 3.4.1 Hash Literals; 3.4.2 Hash Codes, Equality, and Mutable Keys
3.5 Ranges3.5.1 Testing Membership in a Range; 3.6 Symbols; 3.7 True, False, and Nil; 3.8 Objects; 3.8.1 Object References; 3.8.1.1 Immediate values; 3.8.2 Object Lifetime; 3.8.3 Object Identity; 3.8.4 Object Class and Object Type; 3.8.5 Object Equality; 3.8.5.1 The equal? method; 3.8.5.2 The == operator; 3.8.5.3 The eql? method; 3.8.5.4 The === operator; 3.8.5.5 The =̃ operator; 3.8.6 Object Order; 3.8.7 Object Conversion; 3.8.7.1 Explicit conversions; 3.8.7.2 Implicit conversions; 3.8.7.3 Conversion functions; 3.8.7.4 Arithmetic operator type coercions
Summary 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 an
Notes Print version record
Subject Ruby (Computer program language)
Object-oriented programming (Computer science)
Object-oriented programming (Computer science)
Ruby (Computer program language)
Object-oriented programming (Computer science)
Object-oriented programming (Computer science)
Ruby (Computer program language)
Ruby (programspråk)
Form Electronic book
Author Matsumoto, Yukihiro.
ISBN 9780596516178
0596516177
9780596520168
0596520166
9780596554651
0596554656