𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Ruby Pocket Reference

✍ Scribed by Michael James Fitzgerald


Publisher
O'Reilly
Year
2007
Tongue
English
Leaves
178
Series
Pocket Reference
Edition
1st ed
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Although Ruby is an easy language to learn, in the heat of action you may find that you can't remember the correct syntax for a conditional or the name of a method. This handy pocket reference offers brief yet clear explanations of Ruby's core components, from operators to reserved words to data structures to method syntax, highlighting those key features that you'll likely use every day when coding Ruby.Whether you've come to Ruby because of the Rails web development framework - Ruby's killer app - or simply because it's a relatively clean, powerful and expressive language that's useful for a lot of applications, the Ruby Pocket Reference is organized to help you find what you need quickly. This book not only will get you up to speed on how Ruby works, it provides you with a handy reference you can use anywhere, anytime.In this book, you find essential information on: Reserved words, operators, comments, numbers, variables, ranges, and symbols Predefined variables andglobal constants Conditional statements, method use, classes, and modules (mixins) Lists of methods from the Object, String, Array, and Hash classes and the Kernel module sprintf andtime formatting directories Interactive Ruby (irb) and the Ruby debugger Ruby documentation You also get information on the RubyGems package utility and Rake, a build tool similar to make.. If you're using Ruby daily and just want the facts-fast-Ruby Pocket Reference is your book.

✦ 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


πŸ“œ SIMILAR VOLUMES


Ruby Pocket Reference
✍ Michael James Fitzgerald πŸ“‚ Library πŸ“… 2007 πŸ› O'Reilly Media 🌐 English

<div><p>Although Ruby is an easy language to learn, in the heat of action you may find that you can't remember the correct syntax for a conditional or the name of a method. This handy pocket reference offers brief yet clear explanations of Ruby's core components, from operators to reserved words to

Ruby Pocket Reference
✍ Michael Fitzgerald πŸ“‚ Library πŸ“… 2015 πŸ› O’Reilly Media 🌐 English

Updated for Ruby 2.2, this handy reference offers brief yet clear explanations of Ruby’s core elementsβ€”from operators to blocks to documentation creationβ€”and highlights the key features you may work with every day. Need to know the correct syntax for a conditional? Forgot the name of that String met

Regular Expression Pocket Reference: Reg
✍ Tony Stubblebine πŸ“‚ Library πŸ“… 2007 πŸ› O'Reilly Media 🌐 English

Trying to remember the subtleties of all of the different implementations of regex is no longer a problem with this around. Whip it out and instantly you've got access to all of the meta-characters, etc., etc., etc. What more can I say?

Grep Pocket Reference (Pocket Reference
✍ John Bambenek, Agnieszka Klus πŸ“‚ Library πŸ“… 2009 πŸ› O'Reilly Media 🌐 English

This little book is everything a pocket reference should be. grep and egrep are not hard to use, but there are quite a few valid combinations of options, and this book pretty much covers them all. If you want to find expressions in one or more files, this is the tool to use. It's easy to forget ever