Michael James Fitzgerald0596514816, 9780596514815
Table of contents :
Ruby Pocket Reference……Page 1
Contents……Page 4
Conventions Used in This Book……Page 8
Running Ruby……Page 9
Running the Ruby Interpreter……Page 10
Associating File Types on Windows……Page 12
Reserved Words……Page 14
Operators……Page 16
Comments……Page 17
Variables……Page 18
Instance Variables……Page 19
Parallel Assignment of Variables……Page 20
Predefined Variables……Page 21
Pseudovariables……Page 24
Global Constants……Page 25
Methods……Page 26
Return Values……Page 27
Method Name Conventions……Page 28
Variable Arguments……Page 29
Blocks……Page 30
The yield statement……Page 31
Procs……Page 32
Multiple tests……Page 34
The elsif statement……Page 35
The unless Statement……Page 36
The while Statement……Page 37
The until Statement……Page 38
The case Statement……Page 39
The for Loop……Page 40
Classes……Page 41
Instance Variables……Page 43
Accessors……Page 45
Class Variables……Page 46
Singletons……Page 47
Public, Private, or Protected……Page 49
Modules and Mixins……Page 51
Creating a New File……Page 54
ARGV and ARGF……Page 55
Renaming and Deleting Files……Page 56
File Inquiries……Page 57
File Modes and Ownership……Page 58
The IO Class……Page 59
Exception Handling……Page 61
The raise Method……Page 62
Object Class……Page 63
Object Instance Methods……Page 64
Kernel Module……Page 69
Sprintf flags and field types……Page 75
String Class……Page 79
Here Documents……Page 80
Character Encoding……Page 82
Regular Expressions……Page 83
String Methods……Page 88
String instance methods……Page 89
String unpack directives……Page 99
Creating Arrays……Page 101
Array Instance Methods……Page 103
Array pack directives……Page 109
Hash Class……Page 113
Creating Hashes……Page 114
Hash Instance Methods……Page 115
Time Formatting Directives……Page 120
Interactive Ruby (irb)……Page 121
Ruby Debugger……Page 124
Ruby Documentation……Page 126
RDoc Options……Page 128
RubyGems……Page 132
Rake……Page 138
Ruby Resources……Page 140
Glossary……Page 141
Index……Page 158
Reviews
There are no reviews yet.