Programming Ruby 1.9 & 2.0 [Thomas, Fowler & Hunt 2013-07-07].pdf
(
21472 KB
)
Pobierz
Programming Ruby 1.9 & 2.0
The Pragmatic Programmers’ Guide
Dave Thomas
with Chad Fowler
Andy Hunt
The Pragmatic Bookshelf
Dallas, Texas • Raleigh, North Carolina
Many of the designations used by manufacturers and sellers to distinguish their products are claimed
as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC
was aware of a trademark claim, the designations have been printed in initial capital letters or in all
capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic
Bookshelf, PragProg and the linking
g
device are trademarks of The Pragmatic Programmers, LLC.
Every precaution was taken in the preparation of this book. However, the publisher assumes no re-
sponsibility for errors or omissions, or for damages that may result from the use of information (in-
cluding program listings) contained herein.
Our Pragmatic courses, workshops, and other products can help you and your team create better
software and have more fun. For more information, as well as the latest Pragmatic titles, please visit
us at
http://pragprog.com
.
The team that produced this book includes:
Janet Furlow (producer)
Juliet Benda (rights)
Ellie Callahan (support)
Copyright © 2013 The Pragmatic Programmers, LLC.
All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form, or by any means, electronic, mechanical, photocopying,
recording, or otherwise, without the prior consent of the publisher.
Printed in the United States of America.
ISBN-13: 978-1-93778-549-9
Encoded using the finest acid-free high-entropy binary digits.
Book version: P1.0—June, 2013
Contents
Foreword to the Third Edition
Preface
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
ix
xi
xv
Road Map
.
Part I — Facets of Ruby
1.
Getting Started
.
.
.
.
.
.
1.1
The Command Prompt
1.2
Installing Ruby
1.3
Running Ruby
1.4
Ruby Documentation: RDoc and ri
Ruby.new
.
.
.
.
.
.
.
.
2.1
Ruby Is an Object-Oriented Language
2.2
Some Basic Ruby
2.3
Arrays and Hashes
2.4
Symbols
2.5
Control Structures
2.6
Regular Expressions
2.7
Blocks and Iterators
2.8
Reading and ’Riting
2.9
Command-Line Arguments
2.10
Onward and Upward
Classes, Objects, and Variables
.
.
.
3.1
Objects and Attributes
3.2
Classes Working with Other Classes
3.3
Access Control
3.4
Variables
Containers, Blocks, and Iterators
.
4.1
Arrays
4.2
Hashes
4.3
Blocks and Iterators
4.4
Containers Everywhere
.
.
.
.
.
.
.
.
.
.
3
3
5
9
11
15
15
17
20
21
23
24
25
27
28
28
29
32
37
40
43
45
45
47
52
68
2.
.
.
.
.
.
.
.
3.
.
.
.
.
.
.
.
4.
.
.
.
.
.
.
.
Plik z chomika:
musli_com
Inne pliki z tego folderu:
Automation through Chef Opscode_ A Hands-on Approach to Chef [Sabharwal & Wadhwa 2014-07-16].pdf
(19223 KB)
Agile Web Development with Rails (4th ed.) [Ruby, Thomas & Hansson 2011-03-31].pdf
(15246 KB)
Agile Web Development with Rails 4 [Ruby, Thomas & Hansson 2013-10-11].pdf
(12620 KB)
Crafting Rails Applications_ Everyday Practices for Everyday Rails Development [Valim 2011-04-14].pdf
(19418 KB)
Beginning Ruby on Rails E-Commerce (2006).pdf
(11824 KB)
Inne foldery tego chomika:
3D Design - Programming
ActionScript
Actionscript - Flash - Flex - Air
Ada
ADO
Zgłoś jeśli
naruszono regulamin