Ruby Pocket Reference

  • Share this:
Share with a friend
Sign into your email account to send this page to a friend:
Outlook or Apple Mail
or other default program
Walmart Gift Card
Put the fun of shopping in their hands with Walmart Gift Cards! Ship to Home or Send via email.
Advertisement
Advertisement

Ruby Pocket Reference

Format:  Paperback,

170 pages

Publisher: Oreilly & Associates Inc

Publish Date: Jul 2007

ISBN-13: 9780596514815

ISBN-10: 0596514816

Buy from Walmart

Shipping & Pickup
Online
$6.66

In stock for:

  • Store information not available.

Buy from Marketplace

Shipping & Additional Information

Book Information

The following content was provided by the publisher.

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 symbolsPredefined variables andglobal constantsConditional statements, method use, classes, and modules (mixins)Lists of methods from the Object, String, Array, and Hash classes and the Kernel modulesprintf andtime formatting directoriesInteractive Ruby (irb) and the Ruby debuggerRuby 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.

Specifications

Author:
Publisher: Oreilly & Associates Inc
Publish Date: Jul 2007
ISBN-13: 9780596514815
ISBN-10: 0596514816
Format: Paperback
Number of Pages: 170
Shipping Weight (in pounds): 0.36
Product in Inches (L x W x H): 4.34 x 0.45 x 7.0
Walmart No.: 9780596514815

Chapter outline

Running Rubyp. 2
Running the Ruby Interpreterp. 3
Using a Shebang Line on Unix/Linuxp. 5
Associating File Types on Windowsp. 5
Reserved Wordsp. 7
Operatorsp. 9
Commentsp. 10
Numbersp. 11
Variablesp. 11
Local Variablesp. 12
Instance Variablesp. 12
Class Variablesp. 13
Global Variablesp. 13
Constantsp. 13
Parallel Assignment of Variablesp. 13
Symbolsp. 14
Predefined Variablesp. 14
Pseudovariablesp. 17
Global Constantsp. 18
Rangesp. 19
Methodsp. 19
Parenthesesp. 20
Return Valuesp. 20
Method Name Conventionsp. 21
Default Argumentsp. 22
Variable Argumentsp. 22
Aliasing Methodsp. 23
Blocksp. 23
Procsp. 25
Conditional Statementsp. 27
The if Statementp. 27
The unless Statementp. 29
The while Statementp. 30
The until Statementp. 31
The case Statementp. 32
The for Loopp. 33
The Ternary Operatorp. 34
Executing Code Before or After a Programp. 34
Classesp. 34
Instance Variablesp. 36
Accessorsp. 38
Class Variablesp. 39
Class Methodsp. 40
Singletonsp. 40
Inheritancep. 42
Public, Private, or Protectedp. 42
Modules and Mixinsp. 44
Filesp. 47
Creating a New Filep. 47
Opening an Existing Filep. 48
ARGV and ARGFp. 48
Renaming and Deleting Filesp. 49
File Inguiriesp. 50
File Modes and Ownershipp. 51
The 10 Classp. 52
Exception Handlingp. 54
The rescue and ensure Clausesp. 55
The raise Methodp. 55
The catch and throw Methodsp. 56
Object Classp. 56
Object Instance Methodsp. 57
Kernel Modulep. 62
String Classp. 72
Expression Substitutionp. 73
General Delimited Stringsp. 73
Here Documentsp. 73
Escape Charactersp. 75
Character Encodingp. 75
Regular Expressionsp. 76
String Methodsp. 81
Array Classp. 94
Creating Arraysp. 94
Array Class Methodsp. 96
Array Instance Methodsp. 96
Hash Classp. 106
Creating Hashesp. 107
Hash Class Methodsp. 108
Hash Instance Methodsp. 108
Time Formatting Directivesp. 113
Interactive Ruby (irb)p. 114
Ruby Debuggerp. 117
Ruby Documentationp. 119
RDoc Optionsp. 121
RubyGemsp. 125
Rakep. 131
Ruby Resourcesp. 133
Glossaryp. 134
Indexp. 151

Book description

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.

Customer Product Reviews

 

Gifting Plans

Financing Offers

Enjoy Great Financing!

Make the most of your shopping experience with the Walmart Discover® or Walmart Credit Card.

Save $25 when you open a Walmart® Credit Card and spend $75 today.*

*Offer subject to credit approval

Learn More or Apply Now

No Payments + No Interest if Paid in Full in 6 Months!
Enjoy no payments for 6 months. You'll have 6 months with no payments, and no interest if paid in full within 6 months on orders over $250. Otherwise, interest will be charged from the original date of purchase. Bill Me Later is the quick, easy, secure way to buy online without using your credit card. Simply select Bill Me Later at checkout. Subject to credit approval.

See Terms